#include <iostream>
#include <math.h>
using namespace std;

const double a = 2;
const double b = 1.5;
const double c = 5;
const double d = 5.5;

int main(){
	double x, y;
	cin >> x >> y;
	x -= 0.5;
	cout << (fabs(y) > c || fabs(x) > d || (x < -b && y > -a) || (x > b && y < a) ? "NO" : "YES");
	return 0;
}