while~9:l=raw_input()[1:-1].split(", ");b=l!=l[::-1];print"Why,","yneos"[b::2]+", good sir or madam, this list is"+" not"*b,"in fact a palindrome"