没啥好说的
#include <bits/stdc++.h>
using namespace std;
ostream &sp(ostream &output);
bool judge(int n,int n_2)
{
while(n&&n_2)
{
if(n % 10 == n_2 % 10)
{
n /= 10;
n_2 /= 10;
}
else
{
return false;
}
}
return true;
}
int main ()
{
int n;
while(cin>>n)
{
int n_2 = n*n;
if(judge(n,n_2))
cout<<"Yes!"<<endl;
else
cout<<"No!"<<endl;
}
return 0;
}
ostream &sp(ostream &output)
{
return output << " ";
}