#include <bits/stdc++.h>
using namespace std;
namespace patch {
template <typename T>
std::string to_string(const T& n) {
  std::ostringstream stm;
  stm << n;
  return stm.str();
}
}  // namespace patch
int strtoint(string str) {
  stringstream geek(str);
  int y = 0;
  geek >> y;
  return y;
}
vector<int> primearray(int n) {
  vector<int> v(n);
  v[0] = 1;
  v[1] = 1;
  for (int i = 2; i < n; i++) {
    if (v[i] == 0) {
      for (int j = i + i; j < n; j = j + i) {
        v[j] = 1;
      }
    }
  }
  vector<int> ve;
  for (int i = 0; i < v.size(); i++) {
    if (v[i] == 0) ve.push_back(i);
  }
  return ve;
}
int main() {
  ios::sync_with_stdio(false);
  int n, k;
  cin >> n >> k;
  int arr[] = {13,  19,  31,  37,  43,  53,  61,  79,  101, 113, 139,
               163, 173, 199, 211, 223, 241, 269, 277, 331, 353, 373,
               397, 457, 463, 509, 521, 541, 577, 601, 619, 631, 727,
               773, 787, 811, 829, 853, 883, 907, 919, 947, 967, 991};
  int count = 0;
  for (int i = 0; i < 44; i++) {
    if (arr[i] > n) break;
    count++;
  }
  if (k == 0) {
    cout << "YES";
    return 0;
  }
  if (count == k)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
