#include <bits/stdc++.h>
using namespace std;
int n;
int main() {
  scanf("%d", &n);
  if (n < 3) {
    cout << "-1";
    return 0;
  }
  cout << n << " " << n - 1 << " ";
  for (int i = 1; i < n - 1; i++) cout << i << " ";
}
