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 - 3 > 0 and b > 1: res |= calc(a - 3, b - 1) return res if calc(n, k): print("YES") else: print("NO")