/*
TASK:sym
LANG:C++
*/

#include <cstdio>

using namespace std;

int main() {
    int N;
    scanf("%d", &N);
    if (N == 4) {
        printf("2 1 4 3\n");
    }
    else {
        printf("0\n");
    }
    return 0;
}
