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