#include void main() { int n, k = 0; scanf_s("%d", &n); while (n) { if (n & 1) { k++; n = n >> 1; } else n = n >> 1; } printf_s("%d", k); }