#include using namespace std; int main() { int n ; int bitcount = 0 ; cin >> n ; while ( n ) { bitcount+= n%2 ; n = n /2 ; } cout << bitcount << '\n' ; return 0; }