#include <bits/stdc++.h>
using namespace std;
#define int long long
#define pi pair<int,int>
#define f first
#define s second
#define ld long double
signed main()
{
    ios_base::sync_with_stdio(0);
    cin.tie(nullptr);
    int x,y;
    cin>>x>>y;
    if(x>y)
    swap(x,y);
    if(y-x<3)
    cout<<"Yes";
    else
    cout<<"No";
    // int n;
    // cin>>n;
    // vector<int> a(n);
    // for(int i=0;i<n;i++)
    // cin>>a[i];
    
    return 0;
}
#include<bits/stdc++.h>
#define ll long long
#define x first
#define y second
#define pi pair
#define K 1000000007
using namespace std;

ll a[2000000];
int main() {
	ios_base::sync_with_stdio(false);
    cin.tie(NULL);
	ll test_case=1;//cin>>test_case;
	while(test_case--)
	{
        ll m,h;cin>>m>>h;
        if(h%m==0)cout<<"Yes"<<endl;
        else cout<<"No"<<endl;
	}
	return 0;
}

