#include int main() { int a; std::cin >> a; int count = 0; while(a > 0) { if(a & 1) count++; a >> 1; } std::cout << count << std::endl; }