#include
#include
int Palindrome(char *str)
{
int len = strlen (str), i;
for (i = 0; i < len/2; ++i){
if (str[i] != str[len-1-i]){
return 0;
}
}
return 1;
}
int main()
{
char str[] = "abcba";
int r = Palindrome(str);
if (r){
printf ("YES\n");
}
else {
printf ("NO\n");
}
return 0;
}