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