#include using namespace std; int n,nr; void countbits(int n) { if (n) { do nr++; while(n&=n-1); } } int main() { cin>>n; countbits(n); cout<