#include <iostream>
using namespace std;
int main() {
double x,y;
cin >> x >> y;
cout << (((x>=-2)&&(x<=3)&&(y>=2)&&(y<=5))||((x>3)&&(x<=5)&&(y>=2)&&(y<=3)) ? "YES": "NO");
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7Cglkb3VibGUgeCx5OwoJY2luID4+IHggPj4geTsKCWNvdXQgPDwgKCgoeD49LTIpJiYoeDw9MykmJih5Pj0yKSYmKHk8PTUpKXx8KCh4PjMpJiYoeDw9NSkmJih5Pj0yKSYmKHk8PTMpKSA/ICJZRVMiOiAiTk8iKTsKCXJldHVybiAwOwp9