#include <iostream> using namespace std; int main() { unsigned int n,x=1; cin>>n; int ans=0; while(x<=n){ if(n&x)ans++; x<<=1; } cout<<ans; }