A palindrome is a string that reads the same forwards and backwards. Determine whether the given text is a palindrome. Remember that spaces are ignored when reading.
A string (|S| \leq 1000), consisting of lowercase Latin letters and spaces, is given. denotes the length of the string.
Print "YES" if the text is a palindrome, and "NO" otherwise.
Example 1
Example 2