#include #include using namespace std; int bitCount(int b){ b = (b & 0x55555555) + (b >> 1 & 0x55555555); b = (b & 0x33333333) + (b >> 2 & 0x33333333); b = (b & 0x0f0f0f0f) + (b >> 4 & 0x0f0f0f0f); b = (b & 0x00ff00ff) + (b >> 8 & 0x00ff00ff); return (b & 0x0000ffff) + (b >> 16); } int main(){ int p; cin >> p; cout << bitCount(pow(2,p) - 1) << endl; }