EasyRating 900
Reverse and Add
Add n to its reverse (digits backwards, leading zeros dropped). Print the sum and then YES if the sum is a palindrome, otherwise NO.
Input
One integer n (1 ≤ n ≤ 10¹⁸).
Output
The sum and YES/NO.
Sample 1
Input
12
Output
33 YES
Sample 2
Input
195
Output
786 NO
Output appears here