#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
const int startSize = 256;
char s[startSize];
char s_1[startSize];
cin.getline(s, 256);
int j = 0;
for (int i = 0; i < startSize; i++)
{
if (s[i] == ' ') continue;
//учитываем, что пробел при чтении никак не произносится
s_1[j] = s[i];
j++;
}
int resSize = strlen(s_1);
char * s_2 = new char[resSize + 1];
for (int i = 0; i < resSize; i++)
{
s_2[i] = s_1[resSize - 1 - i];
}
s_2[resSize] = '\0';
if (!strcmp(s_1, s_2))
{
cout << "YES\n";
}
else
{
cout << "NO\n";
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y3N0ZGlvPgojaW5jbHVkZSA8Y3N0cmluZz4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkKewoJY29uc3QgaW50IHN0YXJ0U2l6ZSA9IDI1NjsKCWNoYXIgc1tzdGFydFNpemVdOwoJY2hhciBzXzFbc3RhcnRTaXplXTsKCWNpbi5nZXRsaW5lKHMsIDI1Nik7CglpbnQgaiA9IDA7Cglmb3IgKGludCBpID0gMDsgaSA8IHN0YXJ0U2l6ZTsgaSsrKQoJewoJCWlmIChzW2ldID09ICcgJykgY29udGludWU7IAoJCS8v0YPRh9C40YLRi9Cy0LDQtdC8LCDRh9GC0L4g0L/RgNC+0LHQtdC7INC/0YDQuCDRh9GC0LXQvdC40Lgg0L3QuNC60LDQuiDQvdC1INC/0YDQvtC40LfQvdC+0YHQuNGC0YHRjwoJCXNfMVtqXSA9IHNbaV07CgkJaisrOwoJfQoJaW50IHJlc1NpemUgPSBzdHJsZW4oc18xKTsKCWNoYXIgKiBzXzIgPSBuZXcgY2hhcltyZXNTaXplICsgMV07Cglmb3IgKGludCBpID0gMDsgaSA8IHJlc1NpemU7IGkrKykKCXsKCQlzXzJbaV0gPSBzXzFbcmVzU2l6ZSAtIDEgLSBpXTsKCX0KCXNfMltyZXNTaXplXSA9ICdcMCc7CglpZiAoIXN0cmNtcChzXzEsIHNfMikpCgl7CgkJY291dCA8PCAiWUVTXG4iOwoJfQoJZWxzZQoJewoJCWNvdXQgPDwgIk5PXG4iOwoJfQoJcmV0dXJuIDA7Cn0=