#include<iostream>
#include<cstring>
#include<cstdio>
const int maxn=256;
using namespace std;
bool judge(char str[]){
int len=strlen(str);
for(int i=0;i<len/2;i++){
if(str[i]!=str[len-1-i]){
return false;
}
}
return true;
}
int main()
{
char str[maxn];
while(gets(str)){
bool flag=judge(str);
if(flag==true){
printf("YES\n");
}else{
printf("NO\n");
}
}
return 0;
}