import sys input = sys.stdin.readline N,K=map(int,input().split()) if N-K*3==1: print("YES") exit() NOW={N} for i in range(K): #print(NOW) for x in NOW: if x-(K-i)*3==1: print("YES") exit() NNOW=set() for x in NOW: if x%2==0: if x//2>=K-i-1: NNOW.add(x//2) if x-3>=K-i-1: NNOW.add(x-3) NOW=NNOW if 1 in NOW: print("YES") else: print("NO")