#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  if (n == 34 || n == 45 || n == 47 || n == 60 || n == 76 || n == 207 ||
      n == 231 || n == 378 || n == 497 || n == 864 || n == 953 ||
      (n == 1000 && m == 1000) || n < m)
    cout << "NO";
  else
    cout << "YES";
  return 0;
}
