a,b=map(int,input().split()) def check(a,b): if a*b==0: return True if a%2==1 and b%2==1: return False elif a%2+b%2==1: return True else: if a%4!=0 and b%4!=0: return False else: if a%4==0: check(a//2,b-1) else: check(a-1,b//2) if check(a,b): print("Yes") else: print("No")