#include <bits/stdc++.h>
#include <cstdlib> 
using namespace std;
#define FS              ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define ll              long long int
#define pb push_back
#define S second
#define F first
//#define int long long int
#define endl			"\n"
ll MOD=1e9+7;


void solve() {
	ll x,y;
	cin>>x>>y;
	ll k=min(x,y)+3;
	ll m=max(x,y);
	if(k>m)
	cout<<"Yes"<<endl;
	else
	cout<<"No";
	
}
    


      
signed main(){
        FS;
        
    int t=1;

    //cin >> t;

    while(t--) {
        solve();
    }

    return 0;
}
#include "bits/stdc++.h"
using namespace std;

int main(){
	int A, B;
	cin>>A>>B;
	if(A<B&&A+3>B||B<A&&B+3>A) cout<<"Yes"<<endl;
	else cout<<"No"<<endl;

}
