#include <bits/stdc++.h>
using namespace std;

int main() {
  int cnt=0;
  vector<int> v;
  for (int i=0; i<v.size(); i++) {
    cin >> v[i];
    cnt=v[i]++;
  }
  if (N%cnt==0) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}
