#include <bits/stdc++.h>
using namespace std;
const long long mod = int(1e9) + 7;
const int siz = int(1e5) + 5;
int main() {
  if (int(0)) freopen("input.txt", "r", stdin);
  long long n, k;
  int flag = 0;
  cin >> n >> k;
  if (n == 1 || n == 3) {
    if (k <= 2)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  } else if (n % 2 == 0) {
    if (k == 1)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  } else if (k >= n - 1)
    cout << "NO" << endl;
  else {
    set<long long> S;
    long long len = 0;
    for (long long i = 1; i <= 100000 && i <= k; i++) {
      len = S.size();
      S.insert(n % i);
      if (len == S.size()) {
        flag = 1;
        break;
      }
    }
    if (!flag)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
  return 0;
}
