#include using namespace std; int main() { unsigned n; cin >> n; unsigned cnt = 0; while(n) { cnt+=n&1; n>>=1; } cout << cnt << '\n'; }