#include using namespace std; int main() { int n, count = 0; cin>>n; while(n) { if(n%2 == 1) count++; n = n/2; } cout<