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