import java.util.Scanner; public class Main { static Scanner scan = new Scanner(System.in); static int N; static int[] A; static boolean[] F; public static void main(String[] args) { N = scan.nextInt(); A = new int[N]; F = new boolean[N]; for(int i=0; i