a, b = map(int, input().split()) ok = True for i in range(30): if (a >> i) & 1 == 1: if (b >> i) & 1 == 0: ok = False print("Yes" if ok else "No")