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