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