#include<bits/stdc++.h>
using namespace std;
int main () {
	int n,m;
	int num = 0;
	cin >> n >> m;
	for (int i = 1;i <= n / 2; i++){
		for (int j = 1;j <= n / i; j++) {
			if (i + j == m && i * j == m) {
				num += 1;
			}
		}
	} 
	if (num == 0) {
		cout << "no";
	}
	else {
		cout << "yes";
	}
	return 0;
}