#include <stdio.h>
void check(int temp){
int a=temp*temp;
int max=1;
while(1){
if(temp/max==0){
break;
}else{max*=10;}
}
a=a%max;
if(a==temp){printf("Yes!");}
else{printf("No!");}
}
int main() {
int temp;
while(scanf("%d",&temp)!=EOF){
check(temp);
}
return 0;
}

京公网安备 11010502036488号