#include <stdio.h> #include <math.h> void main() { int n,i,j,z,a,b,m,c,d; scanf("%d",&n); c = n; for (i=1; ;i++) { c = c/10; if (c==0) break; } z = i; m = n; d = n; for (j=1; j<=(i/2); j++) { z = z - 1; a = d / pow(10,z); b = m % 10; if (a != b) break; m = m / 10; d = d - a * pow(10,z); } if (i==1||a==b) printf("yes/n"); else printf("no/n"); }