#include using namespace std; int main() { int x; cin >> x; cerr << __builtin_popcount(x); }