def f(x,y) (x==0&&y==0)||(x%2>0?f(x/2,y-1):false)||(y%2>0?f(x-1,y/2):false) end puts f(*gets.split.map(&:to_i))?:Yes: :No