#include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
  int n;
  cin >> n;
  if (n == 0 || n == 1 || n == 2)
    cout << "-1"
         << "\n";
  else {
    for (int i = n; i > 0; i--) cout << i << " ";
    cout << "\n";
  }
}
