#include int main () { int n; scanf("%d", &n); printf("%d", __builtin_popcount (n)); }