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