#include #include using namespace std; int main() { int n,c=0,s=0,u=0,aux=0; cin>>n; while(n) { if(n%2==1)s=s+pow(10,c); c++; n=n/2; } while(s) { u=s%10; s=s/10; if(u==1) aux++; } cout<