class Solution {
public:
     int  NumberOf1(int n) {
         bitset<32>bi(n);
         return bi.count();
     }
};