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