import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int N = scan.nextInt(); int flag = 0, i = 2; for(; i < N; i++) { int flag1 = 0; for(int j = 2; j <= i/2; j++) { if(i%j == 0) { flag1 = 1; break; } } if(flag1 == 0) { if(flag == 0) { System.out.print(i); flag = 1; } else System.out.print(","+i); } } } }