from math import gcd p = [89,83,79,73,71,67,61,59,53,47,43,41,37,31,29,23,19,17,13,11,7,5,3,2,1,1] a = [89] for i in range(int(input())-1): v = p[i]*p[i+1]; j = 1 while a[i]>=j*v or gcd(a[i],j*v)>p[i]: j += 1 a.append(j*v) print(*a)