Samuel's Palindrome

View as PDF

Submit solution

Points: 100
Time limit: 1.0s
Memory limit: 256M

Author:
Problem type

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 \le n \le 10^9

Example 1

Input
5
YES

Example 2

Input
6
NO

Example 3

Input
19
YES

Example 4

Input
121
NO

Comments

There are no comments at the moment.