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