回文判断
#include <iostream>
using namespace std;
int main(){
string s;
cin>>s;
/*
int i=0,j=s.length()-1;
while(i<j)
{
if(s[i]!=s[j])
{
cout<<"N"<<endl;
return 0;
}
i++;
j--;
}
*/
for(int i=0,j=s.length()-1;i<j;i++,j--)
{
if(s[i]!=s[j]) cout<<"N"<<endl;
}
cout<<"Y"<<endl;
return 0;
}