#include<iostream>
#include<fstream>
using namespace std;
long long f[510][510]={0};
int main()
{
ifstream fin("runa.in");
ofstream fout("runa.out");
long long n;
long long ans=0;
fin>>n;
for (long i=0;i<n+1;i++)
f[i][i]=1;
for (int i=1;i<n+1;i++)
for (int j=1;j<i+1;j++)
for (int k=1;k<j&&k<=i-j;k++)
f[i][j]=f[i][j]+f[i-j][k];
for (int i=1;i<n-1;i++)
ans=ans+f[n][i];
fout<<ans+1;
return 0;
}