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

Задача 37592. The most difficult question for beginners, or the digits of a number


Задача

Темы: Целые числа
A three-digit number is entered from the keyboard. 
Write a program that prints space separated on one line:
the sum of the digits of the number and the new number formed by permuting ones and tens