#include<iostream> using namespace std; int n,c; int main() { cin>>n; while(n!=0) { if(n%2) c++; n/=2; } cout<<c; return 0; }