class Solution:

    def hammingDistance(self, x: int, y: int) ->int:
        bin_x = bin(x)[2:].zfill(31)
        bin_y = bin(y)[2:].zfill(31)
        return sum(b1 != b2 for b1, b2 in zip(bin_x, bin_y))

5ca968c9e1cef250128cc236fadea8db3b432bd2
<mask token>

class Solution:
    <mask token>

class Solution:

    def hammingDistance(self, x: int, y: int) ->int:
        bin_x = bin(x)[2:].zfill(31)
        bin_y = bin(y)[2:].zfill(31)
        return sum(b1 != b2 for b1, b2 in zip(bin_x, bin_y))
