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