N, K = map(int, input().split()) if N % 3 == 0: print("NO") exit() INF = K + 1 X = [INF] * (N + 1) X[1] = 0 Q = [1] for i in range(1, K + 1): Q2 = [] while Q: x = Q.pop() if x + 3 <= N and X[x + 3] == INF: X[x + 3] = i Q2.append(x + 3) if x * 2 <= N and X[x * 2] == INF: X[x * 2] = i Q2.append(x * 2) Q,Q2 = Q2,Q if X[N] <= K: print("YES") else: print("NO")