import sys input = sys.stdin.readline N=int(input()) A=[] B=[] for i in range(1,N): A.append(i) for i in range(N,N+N): B.append(i) A.append(sum(B)-sum(A)) print(*A) print(*B)