// editor1
#include<iostream>
#include<string>
#include <cctype>
using namespace std;
int main()
{
    string str,rev;
    if(!(cin>>str))
    {
        cout<<"Invalid input";
        return 0;
    }
    for(char c : str)
    {
        rev+=c;
        return;
    }
    if(str==rev)
    {
        cout<<"YES";
        return 0;
    }
    else
    {
        cout<<"NO";
        return 0;
    }
    return 0;
}