#include <bits/stdc++.h>
using namespace std;
const long long M = 1e9 + 7;
bool isPrime(long long num) {
  bool flag = true;
  for (long long i = 2; i <= sqrt(num); i++) {
    if (num % i == 0) {
      flag = false;
      break;
    }
  }
  return flag;
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long t = 1;
  while (t--) {
    long long n;
    cin >> n;
    if (n <= 2)
      cout << -1 << endl;
    else {
      for (long long i = n; i > 0; i--) cout << i << " ";
    }
  }
}
