UVA 10110

#include<iostream>
#include<cmath>
using namespace std;
int main()
{
    long long n;
    while(cin>>n)
    {
        if(n==0)break;
        long long flag;
        flag=(int)sqrt((double)n);
        if(flag*flag==n)
            cout<<"yes"<<endl;
        else
            cout<<"no"<<endl;
    }
    return 0;
}

 

posted @ 2012-04-28 12:14  open your eyes  阅读(153)  评论(0编辑  收藏  举报