import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n1 = sc.nextInt();
int n2 = sc.nextInt();
int count = 0;
if(n1<=100){
for (int i = 1; count < n1; i++) {
int ap = 3 * i + 2;
if (ap % 4 != 0) {
System.out.println(ap);
count++;
}
}
}
else if(n1>100){
System.out.println();}
else if(n2>100){
System.out.println();}
}
}