#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  while (~scanf("%d", &n)) {
    if (n == 1 || n == 2) {
      printf("-1\n");
    } else {
      for (int i = n; i >= 1; i--) {
        printf("%d ", i);
      }
      printf("\n");
    }
  }
  return 0;
}
