A palindrome (回文) is a word, phrase, number, or other sequence of characters which reads the same backward or forward.
In this problem, you will be given three different strings which consists of characters ‘a’ to ‘z’ and ‘1’to ‘9’. You have to determine whether it is a palindrome or not. If it is a palindrome, output the string. If not, output “NO”.
Example1:
Input : 145abba541
Output : 145abba541
Example2:
Input: ku6g6uk
Output : ku6g6uk
Example3:
Input : bhhghh1
Output : NO
The input contains three lines. Each line is a string which consists of characters ‘a’ to ‘z’ and ‘1’to ‘9’.
The string length is less than or equal to 100, and greater than 1.
If it is a palindrome, output the string. If not, output “NO”.
Note that each answer will be followed by a newline.