#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  long long int n;
  cin >> n;
  if (n < 3) {
    cout << -1;
    return 0;
  }
  long long int a[n];
  a[0] = n;
  a[1] = n;
  for (long long int I = 2; I < n; I += 1) a[I] = I;
  for (long long int I = 0; I < n; I += 1) cout << a[I] << " ";
}
