import time

count = int(input())

for x in range(count, -1, -1):
    print(x, end=' ')

# while count >= 0:
#     time.sleep(1)
#     print(count)
#     count -= 1

import time

count = int(input())

for x in range(count, -1, -1):
    print(x, end=' ')

# while count >= 0:
#     time.sleep(1)
#     print(count)
#     count -= 1

# while count >= 0: #     time.sleep(1) #     print(count) #     count -= 1