a, b = map(int, input().split()) while a: if a&1 == 1 and b&1 == 0: print('No') break a >>= 1 b >>= 1 else: print('Yes')