#include <iostream>
#include <string>
#include <cstring>
using namespace std;

int main() {
    string a;
    int lena = 0;
    while (cin >> a) {
        lena = a.length();
        int i = 0;
        while (i <= lena) {
            if (a[i] != a[lena-1-i]) {
                cout << "No!" << endl;
                return 0;
            }
            i++;
        }
        cout << "Yes!" << endl;
    }
}