#include using namespace std; int main() { int n, r, biti=0; cin>>n; while(n!=0) { r=n%2; if(r==1) biti++; n/=2; } cout<