INF = 1 << 60 n, k = map(int, input().split()) dp = {} dp[n] = 0 for x in range(n, 0, -3): dp[x] = min((n - x) // 3, dp.get(x, INF)) cur = x while cur % 2 == 0: dp[cur // 2] = min(dp.get(cur // 2, INF), dp[cur] + 1) cur //= 2 if dp.get(1, INF) <= k: print("YES") else: print("NO")