n = int(input()) if n == 3 or n == 5: print(-1) exit() if n <= 2: print(1) exit() if n == 4: print(2, 4) exit() L = [(i+1)*2 for i in range(n//2) if i != 2] L.append(6) if n%2: L.append(3) print(*L)