#include <bits/stdc++.h>
using namespace std;
#define reps(i, a, n) for (int i = (a); i < (n); ++i)
#define rep(i, n) reps(i, 0, n)
#define deps(i, a, n) for (int i = (a); i >= (n); --i)
#define dep(i, n) deps(i, n, 0)
#define inf 2147483647
#define int long long

signed main(void)
{
	int x, y, tmp; cin >> x >> y;
	if (x > y) {tmp = x; x = y; y = tmp;}
	x += 3;
	if (x > y) cout << "Yes" << endl;
	else cout << "No" << endl;
}

#include<bits/stdc++.h>
using namespace std;

signed main(){
	int x, y;
	cin >> x >> y;
	if(abs(x - y) < 3)
		cout << "Yes\n";
	else 
		cout << "No\n";
}