#include "bits/stdc++.h"
//#define int long long
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
const ll INF = (1LL << 61);
ll mod = 1000000007;
ll gcd(ll a, ll b) {
	if (b == 0)return a;
	return gcd(b, a % b);
}
ll lcm(ll a, ll b) {
	ll g = gcd(a, b);
	return a / g * b;
}
signed main() {
	ios::sync_with_stdio(false);
	cin.tie(0);
	int N, K; cin >> N >> K;
	int cnt = 0;
	while (true) {
		if (N <= 1) {
			if (N == 1) {
				if (cnt <= K) {
					cout << "YES" << endl;
				}
				else cout << "NO" << endl;
			}
			else {
				cout << "NO" << endl;
			}
			return 0;
		}
		if (N % 2 == 0) {
			cnt++;
			N /= 2;
		}
		else {
			cnt++;
			N -= 3;
		}
	}
	return 0;
}