import java.io.IOException; import java.util.Arrays; import java.util.NoSuchElementException; public class Main{ public static void main(String args[])throws Exception{ FastScanner sc = new FastScanner(); int N = sc.nextInt(); int[] a = new int[N]; for(int i=0;i