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