def main(): n = int(input()) if n == 1 or n == 2: print(1) elif n == 3 or n == 5: print(-1) else: if n%2 == 0: ans = [2*i+2 for i in range(n//2)] else: ans = [] now = 2 while now <= n: if now == 6: now += 2 else: ans.append(now) now += 2 ans.append(6) ans.append(3) print(*ans) if __name__ == '__main__': main()