#include #include using namespace std; int main() { ifstream fin("bitcount.in"); ofstream fout("bitcount.out"); int n, count = 0; fin>>n; while(n) { if(n%2 == 1) count++; n = n/2; } cout<