n=int(input());c=1 while(n): f=0;c+=1 for j in range(1,c):f+=not c%j if(f<2):print(c);n-=1