#include<cstdio>
using namespace std;
int n,f[40][1000],i,j;
int abs(int x){return x<0?-x:x;}
int Main()
{
freopen("subsetz.in","r",stdin);freopen("subsetz.out","w",stdout);
scanf("%d",&n);
f[1][1]=1;
for(i=2;i<n;i++)
{
int up=i*(i-1)/2;
for(j=0;j<=up;j++)
{
f[i][j+i]+=f[i-1][j];
f[i][abs(j-i)]+=f[i-1][j];
}
}
printf("%d\n",f[n-1][n]);
return 0;
}
int main(){;}
int syy=Main();