n = int(input()) ls = [] val = 2 if n%2 == 0: for i in range(n//2): ls.append(val) val += 2 else: if n <= 5: print(-1) exit() else: ls.append(3) ls.append(6) for i in range((n-2)//2): if val == 6: val += 2 ls.append(val) val += 2 for i in range(len(ls)): if (i == len(ls)-1): print(ls[i]) else: print(ls[i],end=' ')