import java.util.Scanner; public class Main1 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str0 = sc.nextLine(); int L = Integer.parseInt(str0); String str1 = sc.nextLine(); String[] str2 = str1.split(" "); int[] a = new int[L]; for(int i=0; i<L...