#include #include using namespace std; int main() { int x; cin>>x; int aux; if (x == 0) { cout<<0; return 0; } if (x ==1) { cout<<1; return 0; } int counter = 0; while (x > 0) { if (x%2) { counter++; } x /= 2; } cout<