#include <bits/stdc++.h>
using namespace std;
long long n, e, o, res, S;
int main() {
  cin >> n;
  if (n <= 2)
    cout << -1;
  else {
    for (long long i = n; i >= 1; --i) cout << i << " ";
  }
}
