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 powmod(long a, long n, long mod) { return n!=0?powmod(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]; boolean za=true; boolean zb=true; for (int i=0;i Integer.MAX_VALUE) throw new NumberFormatException(); return (int) nl; } public double nextDouble() { return Double.parseDouble(next()); } }