#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, x, cnt = 0;
  cin >> n >> m;
  if (m < 10) {
    x = n * 10;
  } else if (m % 10 < 10) {
    x = n * 100;
  } else {
    x = n * 1000;
  }
  int ans = x + m;
  for (int z = 1; z <= ans; z++)
    if (ans % z == 0) cnt++;
  if (cnt % 2 != 0)
    cout << "Yes";
  else
    cout << "No";
  system("pause");
  return 0;
}
