import java.io.IOException; import java.io.InputStream; import java.util.Arrays; import java.util.HashSet; import java.util.NoSuchElementException; public class Main { public static void main(String[] args) { new Main().run(); } long pow(long a, long n, long mod) { return n!=0?pow(a*a%mod,n/2,mod)*(n%2==1?a:1)%mod : 1; } void run() { FastScanner sc = new FastScanner(); int N=sc.nextInt(); long P=sc.nextLong(); long[] A=new long[N]; long[] B=new long[N]; for (int i=0;i Integer.MAX_VALUE) throw new NumberFormatException(); return (int) nl; } public double nextDouble() { return Double.parseDouble(next()); } }