#include <stdio.h>
#include <string.h>
#define MAXN 20
bool palindrome( char *s );
int main() {
char s[MAXN];
scanf("%s", s);
if ( palindrome(s) == true )
printf("Yes\n");
else
printf("No\n");
printf("%s\n", s);
return 0;
}
/* 你的代码将被嵌在这里 */
bool palindrome( char *s ) {
int t;
t = strlen(s);
char a[t];
int flag = 0;
for (int i = 0; i < t; i++) {
a[i] = s[t - i - 1];
}
if (strcmp(a, s) == 0) {
return true;
} else
return false;
}