#include using namespace std; int main(){ int N, A, B; cin >> N >> A; for (int i=1; i> B; if ((B-A) % N){ cout << "No" << endl; return 0; } } cout << "Yes" << endl; return 0; }