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