#include using namespace std;int main() {string s;cin >> s;cout << (s == string(s.rbegin(), s.rend()) ? "YES" : "NO");return 0;}