Processing math: 100%
Palindrome string - MarisaOJ: Marisa Online Judge

Palindrome string

Time limit: 1000 ms
Memory limit: 256 MB
Determine whether or not the given string S is a palindrome. ### Input - 1 line contains string S. ### Output - YES if S is a palindrome, NO otherwise. ### Constraints - 1≤|S|≤1000. ### Example Input: aa Output: YES