#include #include using namespace std; int main() { int p; cin >> p; p = pow(2,p) - 1; int ans = 0; while(p != 0){ if(p % 2 != 0) ans++; p /=2; } cout << ans << endl; return 0; }