A three-digit number is entered from the keyboard.
Write a program that outputs the sum of the digits of a number and a new number formed by the interchanging the digits of tens and ones.
Input format
Given an integer
N > 0.
Output format
Output two numbers separated by a space: first, the sum of the digits of the original number, then the new number formed by the interchanging the digits of tens and ones.
Example
| № |
Входные данные |
Выходные данные |
| 1 |
105 |
6 150 |