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