n = int(input()) if n == 3: print("6 2 3") else: a = [2, 4, 6] for i in range(n - 3): a.append(a[-1] * 2) print(' '.join(map(str, a)))