#include using namespace std; int main() {int a,b=0; cin>>a; while(a) {b++; a=a&(a-1); } cout<