#include <stdio.h>
#include <string.h>

int main()
{
    char s[1000];
    int i,j,len;
    while(scanf("%s",&s)!=EOF)
    {
        len = strlen(s);
        i=j=0;
        len--;
        while(i<len)
        {
            if(s[i]!=s[len])
            {
                j=1;
                break;
            }
            i++;
            len--;
        }
        if(j==1) printf("No!\n");
        else printf("Yes!\n");
    }
    return 0;
}

j为标记,判断是否为回文(•̀ᴗ•́)و