<gh_stars>0
from sys import stdin

n = int(stdin.readline().strip())

for i in range(1, n+1):
    print(i)
from sys import stdin

n = int(stdin.readline().strip())

for i in range(1, n+1):
    print(i)