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