#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  vector<int> v;
  vector<bool> vis(n + 2, false);
  for (int i = 2; i <= n; i++) {
    if (vis[i] == true) {
      continue;
    }
    v.push_back(i);
    for (int l = i + i; l <= n; l += i) {
      vis[l] = true;
    }
  }
  int res = 0;
  for (int i = 0; i < v.size() - 1; i++) {
    if (v[i] + v[i + 1] + 1 <= n && vis[v[i] + v[i + 1] + 1] == false) {
      res++;
    }
  }
  if (res >= k) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
