import std; void main() { char c1, c2; scanf("%c %c\n", &c1, &c2); writeln(yes(abs(c1 - c2) == 1)); } string yes(const bool b) pure @nogc nothrow @safe { return b ? "Yes" : "No"; }