import sys sys.setrecursionlimit(10**7) A,B = map(int, input().split()) se = set() def dfs(s,t): if s == 0 or t == 0: print('Yes') exit() if (s,t) in se: return se.add((s,t)) if s % 2 == 0 and t > 0: dfs(s//2,t-1) if t % 2 == 0 and s > 0: dfs(s-1,t//2) dfs(A, B) print('No')