#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  cin >> n;
  if (n <= 2) {
    cout << -1 << "\n";
  } else {
    for (int i = n; i >= 1; i--) {
      cout << i << " ";
    }
    cout << "\n";
  }
}
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(nullptr);
  auto start = std::chrono::high_resolution_clock::now();
  int t = 1;
  while (t--) solve();
  auto stop = std::chrono::high_resolution_clock::now();
  auto duration =
      std::chrono::duration_cast<std::chrono::nanoseconds>(stop - start);
  cerr << "\nTime taken : "
       << ((long double)duration.count()) / ((long double)1e9) << " s " << endl;
  return 0;
}
