#include #include int main(void) { unsigned long num; fscanf(stderr, "%lu", &num); int cnt = 0; num = (long)pow(2, num) - 1; while ( num != 0 ) { if ( num & 1 ) { cnt++; } num >>= 1; } fprintf(stderr, "%d\n", cnt); return 0; }