#include using namespace std; int main() { char c1, c2; cin >> c1 >> c2; cout << (abs(c1 - c2) == 1 ? "Yes" : "No") << "\n"; }