N = int(input()) L = [3**i for i in range(N)] print(*L[:N])