N = int(input()) P = [2,3,5,7,11,13,17,19,23] L = [] for i in range(-1,9): v = 1 for j,p in enumerate(P): if i!=j: v*=p L.append(v) print(*L[:N])