Palindrome
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Palindrome is a sequence of characters that reads the same backwards as well as forwards. Find out whether the given text is a palindrome. Do not forget that space is not pronounced when reading.
Input
String S (|S| ≤ 1000) consists of small Latin letters and spaces. |S| means the length of a string.
Output
Print "YES" if the text is a palindrome and "NO" otherwise.
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 20K
Acceptance rate 38%