class Solution {
public:
int lowbit(int x){
return x&-x;
}
int NumberOf1(int n) {
int res = 0;
unsigned int t = n;
while(t){
if(t&1) res++;
t>>= 1;
// cout<<n<<endl;
}
return res;
}
};