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