#include using namespace std; int x,p=32,cnt; int main() { cin>>x; while(x){ if(x>=p){ x-=p; cnt++;} p>>=1;} cout<