#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,d,e,f,x; cin>>x; a=x%10; b=x/10%10; c=x/100%10; d=x/1000%10; e=x/10000%10; f=x/100000; if(a==f&&b==e&&c==d)cout<<"Y"; else cout<<"N"; return 0; } /************************************************************** Problem: 1629 User: tangkaixuan Language: C++ Result: Accepted Time:7 ms Memory:2072 kb ****************************************************************/