// // main.cpp // abc // // Created by Alex Rancea on 11/02/15. // Copyright (c) 2015 Alex Rancea. All rights reserved. // #include <iostream> #include <math.h> using namespace std; int main() { // insert code here... int n,i,j=0; cin>>n; for(i=7;i>=0;i--){ if(pow(2,i)<=n){ n -= pow(2,i); j++; } } cout<<j; return 0; }