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