#include<stdio.h>
#include<ctype.h>
#include<string.h>
int main()
{
    char s[1001], cleaned[1001];
    int j = 0;
    fgets(s, sizeof(s), stdin);
    for (int i = 0; s[i] != '\0'; i++)
    {
        if (isalnum(s[i]))
        {
            cleaned[j++] = tolower(s[i]);
        }
    }
    cleaned[j] = '\0';
    int left = 0, right = j - i;
    while(left < right)
    {
        if(cleaned[left] != cleaned[right])
        {
            printf("No");
            return 0;
        }
        left++;
        right--;
    }
    printf("Yes");
    return 0;
}