#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int n, k; cin >> n >> k; if (n % 3 == 0) { cout << "NO" << endl; return 0; } int ans = 0; while(n > 1) { if (n & 1 || n == 4) { n -= 3; } else { n /= 2; } ans++; } cout << (ans <= k ? "YES" : "NO") << endl; }