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 \le |S| \le 1000$. ### Example Input: ``` abba ``` Output: ``` YES ```