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