#include using namespace std; int n; int main() { int ct=0; cin>>n; while (n > 0) { ct = ct+ 1; n = n & (n-1); } cout<