FIZBBZIF - simple palindromes

no tags 

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

hide comments
nadstratosfer: 2021-06-02 01:05:49

Assume no more than 40 chars per line.


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