from functools import lru_cache n, k = map(int, input().split()) @lru_cache(None) def calc(a, b): if b == 0: return False if a == 1: return True res = False if a % 2 == 0 and b > 1: res |= calc(a // 2, b - 1) if a % 2 == 1: if a == 3: return False else: if b - 2 > 0: res |= calc((a - 3) // 2, b - 2) return res if calc(n, k): print("YES") else: print("NO")