import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args)throws IOException { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); boolean[] x = new boolean[1000001]; for (int i=0;i