#include using namespace std; int main(){ long a,b;cin>>a;b=0; while(a!=0){ if(a%2==1){b++;a/=2;} else a/=2; } cout<