A,B = map(int, input().split()) def dfs(s,t): if s == t == 0: print('Yes') exit() 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')