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