#include using namespace std; int main() { int a,s; cin>>a; s=0; while (a!=0) { if (a%2==1) s++; a=a/2; } cout<