# coding: utf-8 # Your code here! x,y = input().split() x,y = int(x),int(y) def keisan(x,y): x_amari = x%2 y_amari = y%2 if x==0 or y==0: return "Yes" elif x_amari==1 and y_amari==1: return "No" elif x_amari==1: return keisan(x-1,int(y/2)) elif y_amari==1: return keisan(int(x/2),y-1) else: return keisan(x-1,int(y/2)) or keisan(int(x/2),y-1) print(keisan(x,y))