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