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