N,K = map(int,input().split()) from collections import defaultdict,deque INF = 10**6 dp=[INF]*(N+1) dp[1] = 0 for i in range(1,N+1): if i >= 3: dp[i] = min(dp[i],dp[i-3]+1) if i%2 == 0: dp[i] = min(dp[i],dp[i//2] + 1) #print(dp) if dp[N] <= K: print('YES') else: print('NO')