#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main(int argc, const char * argv[]) {
string str, str_reverse;
getline(cin, str);
str_reverse = str;
reverse(str_reverse.begin(), str_reverse.end());
if (str == str_reverse) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
}