#include<iostream>
#include<algorithm>
using namespace std;
int main()
{
string a;
while(cin >> a)
{
string b = a;
reverse(a.begin(),a.end());
if(b != a)
cout << "No!" << endl;
else cout << "Yes!" << endl;
}
}

#include<iostream>
#include<algorithm>
using namespace std;
int main()
{
string a;
while(cin >> a)
{
string b = a;
reverse(a.begin(),a.end());
if(b != a)
cout << "No!" << endl;
else cout << "Yes!" << endl;
}
}