FIZBBZIF - simple palindromes

A palindrome is a word or phrase which is the same backwards and forwards.  Capitalisation and punctuation don't count.

Input

A list of words or phrases one at a time

Output

Each word, followed by " is a palindrome" or " is not a palindrome"

Example

Input:
dad
Hannah
A man, a plan, a canal, Panama! Output: dad is a palindrome
Hannah is a palindrome
A man, a plan, a canal, Panama! is a palindrome

Added by:handee
Date:2021-06-01
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All

hide comments
2021-06-02 01:05:49
Assume no more than 40 chars per line.
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.