def judge(a,b): if a==0 or b==0: return True elif a%2==1 and b%2==1: return False else: if a % 2 == 0: if b % 2 == 0: return judge(a/2, b-1) or judge(a-1, b/2) else: return judge(a/2, b-1) else: if b % 2==0: return judge(a-1,b/2) def main(): a,b = map(int,input().split()) if judge(a,b): print('Yes') else: print('No') if __name__ == '__main__': main()