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