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