m, n = map(int,input().split())
print(bin(m^n).count('1'))#求异或,转为二进制,求1的数量,输出1的数量