#include <bits/stdc++.h>
using namespace std;
int arr[1000000];
long long int i, j, k, n, q, jj, bb, m, a, z, x, y, xx1, yy1, xx2, yy2, t, ans;
string s;
int main() {
  cin >> n;
  if ((n == 1) || (n == 2))
    cout << -1;
  else {
    cout << n << ' ' << n - 1 << ' ';
    for (i = 2; i < n; i++) cout << i - 1 << ' ';
  }
}
