#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) {
  while (b != 0) {
    long long c = a % b;
    a = b;
    b = c;
  }
  return a;
}
long long lcm(long long a, long long b) { return a * b / gcd(a, b); }
bool C() {
  long long n, k;
  cin >> n >> k;
  long long lcmk = 1;
  for (long long i = 1; i <= k; ++i) {
    lcmk = lcm(lcmk, i);
    if (lcmk > n + 1) return false;
  }
  if ((n + 1) % lcmk == 0)
    return true;
  else
    return false;
}
int main() {
  if (C())
    cout << "Yes";
  else
    cout << "No";
  return 0;
}
