#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, j;
  cin >> n;
  if (n == 1 || n == 2)
    cout << "-1";
  else {
    for (i = n; i >= 1; i--) cout << i << ' ';
  }
  cout << endl;
  return 0;
}
