N = int(input()) import math if N <= 2: print(1) elif N <= 3: print(-1) elif N == 4: print(2,4) elif N == 5: print(-1) elif N == 6: print(2,4,6) elif N == 7: print(3,6,2,4) elif N == 8: print(2,4,6,8) else: n = math.ceil(N/2) ans = [3,6,2,4] m2 = [2*i for i in range(4,10**5)] ans.extend(m2) print(" ".join([str(i) for i in ans[:n]]))