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