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