import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int N = scan.nextInt(); int list[] = new int[N]; for(int i=0; i=2; i--) { boolean flag = true; for(int j=0; j