#include <bits/stdc++.h>
using namespace std;
long long mod = 1000000000 + 7;
int main() {
  ios::sync_with_stdio(0);
  ios_base::sync_with_stdio(0);
  cin.tie(0), cout.tie(0);
  long long n;
  cin >> n;
  if (n < 3) {
    cout << -1;
    return 0;
  }
  for (int i = n; i >= 1; i--) {
    cout << i << " ";
  }
  return 0;
}
