# 文字コードの差で判定する (同じ文字を間違えて判定してしまう場合WA) C1, C2 = input().split() if abs(ord(C1) - ord(C2)) <= 1: print("Yes") else: print("No")