A,B=map(int,input().split()) A0=0 A1=0 for i in range(32): if A & (1<