#include #define g getchar() int main(){std::cout<<(abs(g*0+g-g)==1?"Yes":"No");}