n = int(input())
for i in range(n*2):
if i < n:
print(i+1)
if i >= n:
print(n-i+n)
a = int(input())
k = 0
for i in range(a*2):
if i < a:
k += 1
if i > a:
k -= 1
print(k)
n = int(input())
for i in range(n*2):
if i < n:
print(i+1)
if i >= n:
print(n-i+n)
a = int(input())
k = 0
for i in range(a*2):
if i < a:
k += 1
if i > a:
k -= 1
print(k)