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

Задача 39359. Number in hexadecimal number system


Input
The program receives a natural number as input - N

Imprint
Display the representation of a number in hexadecimal notation, in which the digits of the number are written in reverse order, that is, from the end. To represent numbers from 10 to 15, use capital English letters from  'A' to 'F'.
 
Examples
# Input Output
1 250 AF

Запрещенные операторы:hex;bin;oct;str(;[;list