import sys input = sys.stdin.readline N, K = map(int, input().split()) res = 10 ** 10 import heapq hpush = heapq.heappush hpop = heapq.heappop h = [(0, N)] while len(h): c, x = hpop(h) if x < 1 or c > K: continue if x % 3 == 1: res = min(res, x // 3 + c) if x % 2: hpush(h, (c + 2, (x - 3) // 2)) else: hpush(h, (c + 1, x // 2)) if res <= K: print("YES") exit(0) print("NO")