n,r,m=int(input()),range,{10:30,20:72,30:114} [print(i) for i in r(2,m[n]) if 0 not in [i%j for j in r(2,i)]]