#include using namespace std; int main(void){ char a,b; cin>>a>>b; cout<<(abs(a-b)==1?"Yes":"No")<