#include <iostream>
using namespace std;
int main() {
int ara[3][3] = {
{1, 2, 3},
{4, 5, 6},
{7, 8, 9}
};
int a, b;
cin >> a >> b;
if((b-a)<=2)
cout << "YES";
else
cout << "NO";
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgYXJhWzNdWzNdID0gewoJCXsxLCAyLCAzfSwKCQl7NCwgNSwgNn0sCgkJezcsIDgsIDl9Cgl9OwoJCglpbnQgYSwgYjsKCWNpbiA+PiBhID4+IGI7CgkKCWlmKChiLWEpPD0yKQoJCWNvdXQgPDwgIllFUyI7CgllbHNlCgkJY291dCA8PCAiTk8iOwoJCQoJcmV0dXJuIDA7Cn0=