#include using namespace std; int n, sol; void rezolva () { while (n) { sol = sol + n % 2; n = n / 2; } } int main () { cin >> n; rezolva (); cout << sol; }