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