n = int(input()) if n == 1: print("0 0 0") elif n == 3: print("2 0 2 1 0 1 2 0 1") else: print(-1)