#include <iostream> using namespace std; int main() { string a; string b; cin >> a; b = a; reverse(a.begin(), a.end()); if (a == b) { cout << "YES"; } else { cout << "NO"; } }