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