Hide
Problem C
Anti-Palindrome
Input
The input consists of one line of text as specified above. The input line will not be longer than 80 characters, and contains at least one alphabetic character.
Output
Print “Palindrome" if the text contains or is itself a palindrome, or “Anti-palindrome" if there are no palindromes in the text.
Sample Input 1 | Sample Output 1 |
---|---|
Happy days are here again. |
Palindrome |
Sample Input 2 | Sample Output 2 |
---|---|
It is game day. |
Palindrome |
Sample Input 3 | Sample Output 3 |
---|---|
It was game day. |
Anti-palindrome |