#include<bits/stdc++.h>
using namespace std;
int a[100][100];
int main()
{
int n;
scanf("%d", &n);
n = n * 2 - 1;
a[0][n / 2] = 1;
int x = 0; //行
int y = n / 2; //列
int v = 1; //几步
while (v < n * n)
{
v++;
if (x == 0)
{
x = n - 1;
y++;
}
else if (y == n - 1)
{
y = 0;
x--;
}
else
{
if (a[x - 1][y + 1] != 0)
{
x++;
}
else
{
x--;
y++;
}
}
}
return 0;
}