#include <iostream>
using namespace std;
typedef long long ll;

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

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

int main()
{
    int n, w;
    cin >> n >> w;

    cout << n / w << endl;
    return 0;
}