N = int(input()) if N & 1: print(2,N,"1 " * (N-2)) else: print(2 * N,"2 " * (N-1))