#include using namespace std; int main() {int n,k=0; cin>>n; while(n) {if (n&1) k++; n=n>>1; } cout<