package barrels; import java.util.Scanner; public class Barrels { private static final int MODULO = 1000000007; public static long getCongruence(long key) { if(key >= MODULO) return (key % MODULO); else return key; } public static long calculateKey(int k) { long key = 2; for(int i=1; i