#include <iostream>
#include <vector>
int ans = 0;
void f(int n, int maxx, std::vector<int> vv) {
if (n == 0) {
ans++;
return;
}
for (int i = 1; i <= n; i++) {
if (i <= maxx) {
vv.push_back(i);
f(n - i, i, vv);
vv.pop_back();
}
}
}
int main() {
int n;
std::cin >> n;
std::vector<int> v;
f(n, n, v);
std::cout << ans;
}