inf = 10**18 N, K = map(int, input().split()) dp = [inf] * (N + 1) dp[1] = 0 for i in range(3, N + 1): dp[i] = min(dp[i], dp[i - 3]) if i % 2 == 0: dp[i] = min(dp[i], dp[i//2]) if dp[N] <= K: print("YES") else: print("NO")