#include using namespace std; int main() { int n, c1=0; cin>>n; while (n) { c1+=n&1; n>>=1; } cout<