import sys from collections import deque as dq from collections import defaultdict as dd input = sys.stdin.readline N, K = map(int, input().split()) Q = dq([1]) d = dd(lambda: 10 ** 10) d[1] = 0 while len(Q): x = Q.popleft() if x + 3 <= N and (d[x + 3] > d[x] + 1): d[x + 3] = d[x] + 1 Q.append(x + 3) if x * 2 <= N and (d[x * 2] > d[x] + 1): d[x * 2] = d[x] + 1 Q.append(x * 2) if d[N] <= K: print("YES") else: print("NO")