~/algor $ cat problems/string-palindrommi
Palindrome string
Easy
1000 ms
128 MB
28%
A string $s$ of lowercase Latin letters is given. Determine whether it reads the same left to right and right to left (whether it is a palindrome).
Input
One line containing the string $s$.
Output
YES if it is a palindrome, otherwise NO.
Note
$1 \le |s| \le 10^{5}$
$s$ consists of lowercase Latin letters (a–z) only
Examples
Input #1
kiyik
Output #1
YES
Input #2
algor
Output #2
NO