#include <stdio.h>
int main ()
{
long long int n ,cnt ;
while (scanf ("%lld",&n) ==1 && n !=0)
{
cnt = sqrt (n) ;
if (cnt *cnt == n) printf ("yes\n") ;
else printf ("no\n") ;
}
return 0 ;
}
int main ()
{
long long int n ,cnt ;
while (scanf ("%lld",&n) ==1 && n !=0)
{
cnt = sqrt (n) ;
if (cnt *cnt == n) printf ("yes\n") ;
else printf ("no\n") ;
}
return 0 ;
}