import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.Arrays; import java.util.NoSuchElementException; import java.util.PriorityQueue; public class Main { public static void main(String[] args) { new Main().run(); } class State implements Comparable{ int x; int y; long cost; int left; public State(int x, int y, long cost, int left) { this.x = x; this.y = y; this.cost = cost; this.left = left; } @Override public int compareTo(Main.State o) { return Long.compare(cost, o.cost); } } 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()); } }