import sys def input(): return sys.stdin.readline().rstrip() """ Do not get stuck on a problem for more than 20 minutes Just check the editorial :) There should be something else to do insead """ MAXN = 200010 INF = 1 << 128 DP = [INF]*(MAXN) DP[1] = 0 for i in range(1,MAXN): if i % 2 == 0: DP[i] = min(DP[i],DP[i//2] + 1,DP[i-3] + 1) else: DP[i] = min(DP[i],DP[i-3] + 1) def main(): n,k = map(int,input().split()) if DP[n] <= k: print("YES") else: print("NO") return if __name__ == "__main__": main()