#include <bits/stdc++.h>
using namespace std;
const long long int N = 1e6 + 2, inf = 1e9 + 7;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  if (n <= 2) cout << "-1\n", exit(0);
  for (int i = n; i >= 1; i--) cout << i << " ";
  cout << "\n";
  return 0;
}
