from collections import deque N,K = map(int,input().split()) que = deque([(1, 0)]) # (細胞の数, 捜査回数) visited = [True]*(N+1) while que: num, count = que.popleft() if count > K: continue if num == N: print('YES') exit() a, b = num*2, num+3 if a <= N and visited[a]: que.append((a,count+1)) visited[a] = False if b <= N and visited[b]: que.append((b,count+1)) visited[b] = False print('NO')