#include <cstdio> using namespace std; int main(){ int n,npow; while (scanf("%d",&n)!=EOF){ npow=n*n; if(npow%10==n){ printf("Yes!\n"); } else if(npow%100==n){ printf("Yes!\n"); } else if(npow%1000==n){ printf("Yes!\n"); }else if(npow%10000==n){ printf("Yes!\n"); } else{ printf("No!\n"); } } }