#include <iostream>
using namespace std;

int main() {
	ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);

	int x, y;
	cin >> x >> y;

	if (y > x) swap(x, y);

	if (y + 3 > x) 
		cout << "Yes";
	else 
		cout << "No";

	return 0;
}
#include <cmath>
#include<iostream>
#include<vector>
#include<algorithm>
#include<functional>
#include<queue>
#include<set>
#include<map>
#include<bitset>
#include<iomanip> //setprecision
#include<stack>
#include<set>
#include<deque>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> P;
ll mod = 1000000007;
ll mod2 = 998244353;

int main() {
    ll s, p;
    cin >> s >> p;
    for (int i = 1; i <= sqrt(p); i++) {
        if (p % i == 0) {
            ll m = p / i;
            if (i + m == s) {
                cout << "Yes" << endl;
                return 0;
            }
        }
    }
    cout << "No" << endl;
    return 0;
}