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