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