import sys readline=sys.stdin.readline N=int(readline()) idx=[i for i in range(1,N+1)] for i in range(N): L,R=[],[] for j in range(i%2,N,2): if j+1": idx[j],idx[j+1]=idx[j+1],idx[j] print("!",*idx)