Samuel's Palindrome
Everyone please welcome Samuel M to MAPS. He loves to paint!
Input
The first line contains a single integer n.
Output
Output YES if the number n is palindrome, otherwise print NO.
Constraints
1≤n≤109
Example 1
Input
5
YES
Example 2
Input
6
NO
Example 3
Input
19
YES
Example 4
Input
121
NO
Comments0
No comments yet
Be the first to comment.
New comment
Log in to join the discussion.