from sys import stdin, stdout input = lambda: stdin.readline().rstrip() write = stdout.write def main(): K = int(input()) ans = list(range(1, 2 ** K)) print(*ans) main()