#include<stdio.h>
#include<math.h>
int main()
{
int x,y,s;
while(scanf("%d%d",&x,&y)!=EOF)
{
if(x==0&&y==0)break;
s=x*x-4*y;
if(s>=0&& (int)sqrt(s)==sqrt(s) )
printf("Yes\n");
else
printf("No\n");
}
return 0;
}
#include<stdio.h>
#include<math.h>
int main()
{
int x,y,s;
while(scanf("%d%d",&x,&y)!=EOF)
{
if(x==0&&y==0)break;
s=x*x-4*y;
if(s>=0&& (int)sqrt(s)==sqrt(s) )
printf("Yes\n");
else
printf("No\n");
}
return 0;
}