using System;
public class Program
{
public static void Main()
string x = Console.ReadLine();
string x1 ="";
for(int i = x.Length-1 ; i >= 0; i--)
x1 += x[i];
}
//if(x1 == x)
//Console.WriteLine("Yes");
//else
//Console.WriteLine("No");
bool check = (x1 == x);
string res = (check==true)? "YES": "NO";
Console.WriteLine(res);