#include #include using namespace std; constexpr int INF = 1001001001; void chmin(int &a, int x){ if(a > x) a = x; } int f(vector &memo, int n){ if(n < 1) return INF; if(memo[n] == INF){ if(n > 1 && n % 2 == 0) chmin(memo[n], f(memo, n/2)+1); chmin(memo[n], f(memo, n-3)+1); } return memo[n]; } int main(){ int n, k; cin >> n >> k; vector memo(n+1, INF); memo[1] = 0; if(f(memo, n) <= k) cout << "YES" << endl; else cout << "NO" << endl; return 0; }