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