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

#define int long long
#define il inline
#define rg register

il int read()
{
	int re=0,k=1;char ch=getchar();
	while(ch>'9'||ch<'0'){if(ch=='-')k=-1;ch=getchar();}
	while(ch<='9'&&ch>='0'){re=re*10+ch-48;ch=getchar();}
	return re*k;
}

il void write(int x)
{
	if(x<0)return putchar('-'),write(-x),void();
	if(x<10)return putchar(x+48),void();
	return write(x/10),write(x%10),void();
}

int s,p;
signed main()
{
	s=read();p=read();
	for(rg int i=1;i*i<=p;i++)
	{
		if(p%i)continue;
		if(p/i+i==s)
		{
			puts("Yes");
			return 0;
		}
	}
	puts("No");
}
#include <bits/stdc++.h>
using namespace std;
int main()
{
  int a,b;
  cin>>a>>b;
  if (abs(a-b)<3) cout<<"Yes";
  else cout<<"No";
  return 0;
}