Problem

12 /13


The word is reversed

Problem

The word is given.
Output:
1) in the first line - this word in reverse character order (reading from right to left);
2) the word YES, if the source word is a palindrome (a word that reads the same from left to right as from right to left). Otherwise - NO
 
Examples
# Input Output
1 mama amam
NO