#include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main()
{
    string word1,word2;
    cin>>word1;
    word2=word1;
    reverse(word1.begin(),word1.end());
    // for(int i=0;i<=word1.length();i--)
    // {
    //             word1=word1[i];
    // }
    // if(word1==word2)
    {
        cout<<"YES";
    }
    else
    {
        cout<<"NO";
    }
}