A, B = map(int, input().split()) judge = True for i in range(32): if (A >> i & 1) and not (B >> i & 1): judge = False print("Yes" if judge else "No")