A,B=map(int,input().split()) def calc(x,y): if x*y==0: return True if x%2==0: if calc(x//2,y-1)==True: return True if y%2==0: if calc(x-1,y//2)==True: return True return False if calc(A,B)==True: print("Yes") else: print("No")