N, K = map(int, input().split()) q = [N] cnt = K while cnt > 0: nq = [] yes = False for M in q: if M % 2 == 0: if M == 2: cnt = 0 yes = True break else: nq.append(M//2) if M > 3: if M == 4: cnt = 0 yes = True break else: nq.append(M-3) if len(nq) == 0: break q = nq cnt -= 1 print('YES' if yes else 'No')