#include <stdio.h>
#include <string.h>

int main(){
	char angka[150];
	int cek = 0;
	scanf("%s", angka);
	int x = strlen(angka) - 1;
	for(int i = 0 ; i <= x ; i++, x--){
		if(angka[i] != angka[x]){
			cek = 1;
			break;
		}
	}
	if(cek == 1) printf("NO\n");
	else printf("YES\n");
	
	return 0;
}