Given a sequence of words, say which of them are palindromes and wich are not. Remember that a word is a palindrome if is read equal from left to right and from right to left.
The first line of the input contains a number . The following lines contain each one a non empty word formed exclusively by uppercase letters.
For each word, your program must print in a line if is a palindrome following the format of the instance.
Salvador Roura (en: Carlos Molina)
© Jutge.org, 2006–2025.
Input
2 CASA POP
Output
CASA no es palindrom POP es palindrom