#include <iostream>
#include <string>
#include <cctype>
using namespace std;
int main()
{
string a,b,c;
cout <<"enter string: ";
getline( cin, a );
for(int i = 1; i < a.length(); i++)
{
b = a.substr(i,1);
if ( !(ispunct(b.c_str()) || isspace(b.c_str())))
c += b;
}
for ( int i = 1; i <= c.length(); i++)
{
{
if ( c.substr(i,1) != c.substr( c.length() - i))
cout << "NO";
break;
}
if i > c.length()
cout << "YES" << endl;
}
system("pause");
return 0;
}