import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); while (input.hasNext()) { int n = input.nextInt(); long[] arr = new long[n]; for (int i = 0; i < n; i++) { arr[i] = input.nextInt(); } Syste...