import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.Arrays;import java.util.Comparator; import java.util.List; import java.util.NoSuchElementException; class Main { public static void main(String[] args) { new Main().run(); } // i != j => A_i != A_j void run() { FastScanner sc=new FastScanner(); int N=sc.nextInt(); int[] T=new int[N]; int[] D=new int[N]; double[][] a=new double[N][2]; for(int i=0;iv[0])); for(int i=0;i Integer.MAX_VALUE) throw new NumberFormatException(); return (int) nl; } public double nextDouble() { return Double.parseDouble(next());} }