import sys input = sys.stdin.readline print(*[3**i for i in range(9)])