// editor2
#include<iostream>
#include<string>
using namespace std;
int main()
{
    char a,b;
    if(a.length()<100)
    {
        b=rev(a).begin(),rev(a).end;
        if(a==b)
        {
            cout<<"YES";
        }
        else
        {
            cout<<"NO";
        }
    }
    return 0;
}