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