Text-processing intern Meherun is building a mini text-analysis tool. First feature: check if a given word reads the same forwards and backwards. Read a string. Print "YES" if it reads the same forwards and backwards, else "NO".
Input
One string S.
Output
"YES" or "NO".
Constraints
1 ≤ |S| ≤ 10^5
Sample Input
level
Sample Output
YES
main.c
Loading editor…
Write C, then Run (custom I/O) or Submit (sample tests). ⌘/Ctrl+Enter submits.