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