#include <stdio.h>
#include <stdbool.h>
bool isShouxing(int n) {
int temp1 = n, temp2 = n * n;
while (temp1 > 0) {
if (temp1 % 10 != temp2 % 10) {
return false;
}
temp1 /= 10;
temp2 /= 10;
}
return true;
}
int main() {
int n;
while (scanf("%d", &n) != EOF) {
if(isShouxing(n)) {
printf("Yes!\n");
} else {
printf("No!\n");
}
}
return 0;
}



京公网安备 11010502036488号