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

Задача 3954. New number - 3


Задача

Темы: Целые числа
Given a three digit number. The last figure was crossed out in it and attributed to it at the beginning. Write a program that finds the resulting number.

Sample input and output
test number Input Output
1 456 645