n, k = map(int, input().split()) seen = set() L = [1] for _ in range(k): NL = [] while L: a = L.pop() b = 2 * a c = a + 3 if b <= k and b not in seen: seen.add(b) NL.append(b) if c <= k and c not in seen: seen.add(c) NL.append(c) L = NL[:] if k in seen: print("YES") else: print("NO")