#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, a[50];
  cin >> n;
  if (n <= 2)
    cout << "-1\n";
  else {
    for (i = 0; i < n; i++) {
      a[i] = n - i;
    }
    for (i = 0; i < n; i++) cout << a[i] << " ";
    cout << "\n";
  }
  return 0;
}
