#include using namespace std; int main() { char c1, c2; cin >> c1 >> c2; if (abs(c1 - c2) <= 1) cout << "Yes" << endl; else cout << "No" << endl; }