#include <bits/stdc++.h>
using namespace std;
const long long N = 2e5 + 5;
long long arr[N];
long long ans[N];
long long dp[N];
set<long long> adj[N];
long long vis[N] = {0};
set<long long> temp;
void fast() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
}
void solve() {
  long long n;
  cin >> n;
  if (n <= 2) {
    cout << -1 << '\n';
    return;
  }
  for (long long i = n; i >= 1; i--) {
    cout << i << " ";
  }
}
int32_t main() {
  fast();
  long long t = 1;
  while (t--) solve();
}
