import sys input=lambda: sys.stdin.readline().rstrip() a,b=map(int,input().split()) ct01,ct10=0,0 for i in range(31): aa,bb=a&(1<