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