# -*- coding:utf-8 -*-
class Solution:
    def NumberOf1(self, n):
        # write code here
        f=1
        ret=0
        if f&n == f:
            ret += 1
        for i in range(1,32):
            f <<= 1
            if f&n == f:
                ret += 1
                
        return ret
05f5a64f0cb0ac2e0b2338b51708b08ac8f4db81
<mask token>

class Solution:
    <mask token>

class Solution:

    def NumberOf1(self, n):
        f = 1
        ret = 0
        if f & n == f:
            ret += 1
        for i in range(1, 32):
            f <<= 1
            if f & n == f:
                ret += 1
        return ret

# -*- coding:utf-8 -*-
class Solution:
    def NumberOf1(self, n):
        # write code here
        f=1
        ret=0
        if f&n == f:
            ret += 1
        for i in range(1,32):
            f <<= 1
            if f&n == f:
                ret += 1
                
        return ret