def f(n,k): if k < 0: return 0 if n%3==0 and 3*k >= n: return 1 if n%2: return f(n-3,k-1) return f(n//2,k-1) n,k = map(int,input().split()) print("YES" if f(n,k) else "NO")