Four-digit palindrom
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Four-digit number is given. Determine is it a palindrome. A positive integer is a palindrome if it is read the same from left to right and from right to left. For example the number is palindrome.
Input
Onr four-digit number .
Output
Print "YES", if the number is a palindrome, and "NO" otherwise.
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 15K
Acceptance rate 58%