#include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main(){
    string str ,str2 ;
    int i;
    cin>>str;
    int n;
    n=str.length();
    int i;
    i=0;
    if(str[i]=str[n-i-1])
    {
        cout<<"YES";
    }
    else if (str[i]!=str[n-i-1]){
        cout<<"NO";
        
    }
    else{
        
    }
    return 0;
    
}