Given a word, print if it is a palindrome, otherwise .
A palindrome is a word which reads the same backward as forward, e.g. racecar.
The input will contain a string ().
will contain lowercase alphabets only.
Print or .
Input | Output |
---|---|
racecar | Yes |
Input | Output |
---|---|
carrot | No |