N = int(input()) ans0 = ["", 1,2,-1,"2 4",-1] if N <= 5: print(ans0[N]) exit() N2 = -(-N//2) if N % 2 == 0: print(*[2*i for i in range(1,N2+1)]) else: tmp = [] j = 1 cnt = 0 while cnt < N2 - 2: if 2 * j != 6: tmp.append(2*j) cnt += 1 j += 1 print(*([3,6] + tmp))