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