#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int arr[n];
  if (n >= 3) {
    for (int i = 0; i < n; i++) {
      arr[i] = (n - i);
    }
    for (int i = 0; i < n; i++) {
      cout << arr[i];
      if (i != n - 1)
        cout << " ";
      else
        cout << endl;
    }
  } else
    cout << "-1" << endl;
  return 0;
}
