#include #include int main() { int n; scanf("%d",&n); int db=0; while (n>0) { db+=n%2; n=n/2; } printf("%d",db); return 0; }