Four-digit palindrome

Four-digit palindrome. A palindrome is a number which reads the same when read forward as it it does when read backward. Given a four-digit integer, print “YES” if it’s a palindrome and print “NO” otherwise.

Input

Output

1221

YES

1231

NO

5775

YES

5777

NO

5776

NO

 

Leave a Reply

Your email address will not be published. Required fields are marked *