import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.Arrays; import java.util.NoSuchElementException; public class Main { public static void main(String[] args) { new Main().run(); } long gcd(long a, long b) { return b==0?a:gcd(b, a%b); } long lcm(long a, long b) { return a/gcd(a, b)*b; } final long p=998244353; void run() { FastScanner sc = new FastScanner(); int N=sc.nextInt(); if (N==1) { System.out.println(1); } else if (N==3||N==5) { System.out.println(-1); } else if (N%2==0) { for (int i=2;i<=N;i+=2) { System.out.print(i+(i==N?"\n":" ")); } } else { ArrayList list=new ArrayList<>(); list.add(3); list.add(6); for (int i=2;i<=N-1;i+=2) { if (i!=6) list.add(i); } for (int i=0;i Integer.MAX_VALUE) throw new NumberFormatException(); return (int) nl; } public double nextDouble() { return Double.parseDouble(next()); } }