a, b = map(int, raw_input().split()) stack = [(0, 0)] d = set() while len(stack) > 0: x, y = stack[-1] stack.pop() if x == a and y == b: print "Yes" exit() if (x, y) in d: continue d.add((x, y)) aa = x*2 bb = y+1 if aa <= a and bb <= b and (aa, bb) not in d: stack.append((aa, bb)) aa = x+1 bb = y*2 if aa <= a and bb <= b and (aa, bb) not in d: stack.append((aa, bb)) print "No"