Олимпиадный тренинг

Задача 21875. Digits of the number


Задача

Темы: Целые числа
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