#include using namespace std; int main() { int n, count = 0; cin >> n; for (int c = 31; c >= 0; c--) { if (n >> c & 1) count++; } cout << count; return 0; }