a, b=gets.split.map(&:to_i) def f(x, y) if x==0 or y==0 true else ret=false ret|=f(x/2, y-1) if x%2==0 and y-1>=0 ret|=f(x-1, y/2) if y%2==0 and x-1>=0 ret end end puts (f(a, b) ? 'Yes' : 'No')