#include <bits/stdc++.h>
using namespace std;
long long n, k, l = 1e18 + 10;
int main() {
  cin >> n >> k;
  if (n == 1) {
    if (k <= 2) {
      cout << "Yes";
    } else {
      cout << "No";
    }
    return 0;
  }
  for (int i = 1;; i++) {
    if ((n + 1) % i != 0) {
      l = i - 1;
      break;
    }
  }
  if (k <= l) {
    cout << "Yes";
  } else {
    cout << "No";
  }
}
