// editor2
#include<stdio.h>
#include<string.h>
#include<ctype.h>

int main(){
    char str[1001],c[1001];
    int i,j=0;
    fgets(str,sizeof(str),stdin);
    for(i=0;str[i];i++){
        if(isalnum((unsigned char)str[i])){
            c[j++] = tolower((unsigned char)str[i]);
        }
    }
    c[j]='\0';
    int s=0,e=j-1,p=1;
    while(s<e){
        if(c[s]!=c[e]){
            p=0;
            break;
        }
        s++;
        end--;
    }
    if(p){
        printf("Yes");
    }
    else{
        printf("No");
    }
    return 0;
}