LearnPy Hub
← Arena
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
solution.py
Output appears here
Reverse and Add · Python Arena problem · LearnPy Hub