importjava.util.Scanner;publicclassMain{publicstaticvoidmain(String[] args){Scanner sc =newScanner(System.in);char[] s = sc.next().toCharArray();int l =0;int r = s.length-1;while(l<r){if(s[l]!=s[r]){System.out.println("N");return;}
l++;
r--;}System.out.println("Y");
sc.close();}}