from collections import deque A, B = map(int, input().split()) d = deque() d.append((A, B)) while d: a, b = d.popleft() if a == b == 0: exit(print('Yes')) if a%2==0 and b%2==1: p, q = a//2, b-1 d.append((p, q)) elif a%2==1 and b%2==0: p, q = a-1, b//2 d.append((p,q)) elif a%2==0 and b%2==0: p, q = a//2, b-1 d.append((p, q)) p, q = a-1, b//2 d.append((p, q)) else: continue print('No')