#include <bits/stdc++.h>
using namespace std;
bool isShou(int n){
string s1=to_string(n);
string s2=to_string(n*n);
int len1=s1.size();
int len2=s2.size();
for(int i=0;i<len1;i++){
if(s1[len1-1-i]!=s2[len2-1-i]){
return false;
}
}
return true;
}
int main(){
int n;
while(cin>>n){
if(isShou(n)){
cout<<"Yes!"<<endl;
}else{
cout<<"No!"<<endl;
}
}
return 0;
}



京公网安备 11010502036488号