import java.util.Scanner; public class Main { public static void main(String[] args) { int[] num = new int[in.nextInt()]; for(int i = 0;i<num.length;i++) num[i] = in.nextInt(); while(lo<num.length && hi<num.length){ if(num[lo] == num[hi]){ hi++; } else{...