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