import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); sc.close(); if (n % 2 == 0) { StringBuilder sb = new StringBuilder(); for (int i = 2; i <= n; i += 2) { sb.append(i).append(' '); } sb.deleteCharAt(sb.length() - 1); System.out.println(sb.toString()); } else if (n == 1) { System.out.println(1); } else if (n == 3 || n == 5) { System.out.println(-1); } else { StringBuilder sb = new StringBuilder(); for (int i = 2; i <= n; i += 2) { if (i != 6) { sb.append(i).append(' '); } } sb.append("6 3"); System.out.println(sb.toString()); } } }