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