import java.util.*;
import java.lang.*;
import java.io.*;
class Main
{
{
Scanner in
= new Scanner
(System.
in); int n = in.nextInt();
int[][] arr = new int [20][20];
for (int i = 0; i < n; i++){
for (int j = 0; j < n; j++){
if(i + j == n - 1) arr[i][j] = 0;
else if (i + j < n - 1) arr[i][j] = 2;
else arr[i][j] = 1;
}
}
for (int i = 0; i < n; i++){
for (int j = 0; j < n; j++){
}
}
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgoKY2xhc3MgTWFpbgp7CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgdGhyb3dzIGphdmEubGFuZy5FeGNlcHRpb24KCXsKCQlTY2FubmVyIGluID0gbmV3IFNjYW5uZXIoU3lzdGVtLmluKTsKCQlpbnQgbiA9IGluLm5leHRJbnQoKTsKCQlpbnRbXVtdIGFyciA9IG5ldyBpbnQgWzIwXVsyMF07CgkJZm9yIChpbnQgaSA9IDA7IGkgPCBuOyBpKyspewoJCQlmb3IgKGludCBqID0gMDsgaiA8IG47IGorKyl7CgkJCQlpZihpICsgaiA9PSBuIC0gMSkgYXJyW2ldW2pdID0gMDsKCQkJCWVsc2UgaWYgKGkgKyBqIDwgbiAtIDEpIGFycltpXVtqXSA9IDI7CgkJCQllbHNlIGFycltpXVtqXSA9IDE7CgkJCX0KCQl9CgkJZm9yIChpbnQgaSA9IDA7IGkgPCBuOyBpKyspewoJCQlmb3IgKGludCBqID0gMDsgaiA8IG47IGorKyl7CgkJCQlTeXN0ZW0ub3V0LnByaW50KGFycltpXVtqXSk7CgkJCX0KCQlTeXN0ZW0ub3V0LnByaW50bG4oKTsKCQl9Cgl9Cn0=