#include <iostream>
#include <string>
using namespace std;
int main() {
string s;
cin >> s;
int left = 0, right = s.size() - 1;
while (left < right) {
if (s[left] != s[right]) {
cout << "No!" << endl;
return 0;
}
left++;
right--;
}
cout << "Yes!" << endl;
return 0;
}