import java.math.BigInteger;
public class Main {
public static void main(String[] args) {
BigInteger a = new BigInteger("20");
BigInteger b = new BigInteger("7");
BigInteger c = a.pow(22);
BigInteger res = c.mod(b);
Integer n1 = res.intValue();
System.out.println((n1 + 6 >= 7) ? (n1 + 6) : (n1 + 6 - 7));
}
}
int的范围差不多是正负三万二,所以这题要用BigInteger,最后一句输出(n+6)也行