#include using namespace std; typedef long long ll; #define int ll int n,cnt=0; inline int lowbit(int x){return x&-x;} signed main(){ cin>>n; int res=n+1; while(n){ n-=lowbit(n); cnt++; } cout<