import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { public static void main(String[] args) { FastReader fr = new FastReader(); int n = fr.nextInt(); int[] v = new int[n]; for(int i=0;i