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

int main()
{
	char str[200], pal[200];
	int j;

	while (cin >> str){
		j = 0;
		for (int i = strlen(str) - 1; i >= 0; i--){
			pal[j] = str[i];
			j++;
		}
		pal[j] = '\0';
		if (strcmp(str, pal) == 0) cout << "YES" << endl;
		else cout << "NO" << endl;
	}
	return(0);
}