#include <iostream>
using namespace std;

void odd (int x)
{
    for (int i = 1; i <= x; i ++ )
    {
        cout << x - i + 1 << " ";
    }
}

int main() {
    int n;
    cin >> n;
    if (n <= 2)
    {
        cout << -1 << endl;
        return 0;
    }
    if (n % 2 == 0)
    {
        odd(n - 1);
        cout << n;
    }
    else {
        odd(n);
    }
}
// 64 位输出请用 printf("%lld")