import java.io.IOException; import java.io.InputStream; import java.util.Map; import java.util.NoSuchElementException; import java.util.TreeMap; public class Main { public static void main(String args[]) { FastScanner scanner = new FastScanner(); int n=scanner.nextInt(); int[] a=new int[n]; int[] b=new int[n]; Mapmap=new TreeMap<>(); for(int i=0;i Integer.MAX_VALUE) throw new NumberFormatException(); return (int) nl; } public double nextDouble() { return Double.parseDouble(next());} }