#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
string s;
cin >> s;
int d = s.find('.');
if (d != -1)
s = s.substr(0, d);
string t = s;
reverse(s.begin(), s.end());
if (t == s)
cout << "Yes";
else
cout << "No";
return 0;
}