#include <bits/stdc++.h>
using namespace std;

int main() {
    string s;
    while (getline(cin,s)) { // 注意 while 处理多个 case
        string s2 =s;
        reverse(s.begin(),s.end());
        if(s == s2)cout<<"Yes!"<<endl;
        else cout<<"No!"<<endl;
    }
}
// 64 位输出请用 printf("%lld")

qd