#include<iostream> int nr,n; int main() { cin>>n; int p=1; while(p<=n) { if(n&p > 0)nr++; p=p*2; } cout<<nr; return 0; }