Reversed number in hexadecimal P60816


Statement
 

pdf   zip

html

Write a program that reads a number and prints its hexadecimal representation reversed. Follow the convention to use the letters from ‘A’ to ‘F’ to represent the values from 10 to 15.

Input

Input consists of a natural number.

Output

Print, reversed, the hexadecimal representation of the number, with as many zeros at its left as required.

Public test cases
  • Input

    16
    

    Output

    01
    
  • Input

    1023
    

    Output

    FF3
    
  • Input

    90800
    

    Output

    0B261
    
  • Input

    65547
    

    Output

    B0001
    
  • Input

    0
    

    Output

    0
    
  • Input

    1000000000
    

    Output

    00ACA9B3
    
  • Information
    Author
    Salvador Roura
    Language
    English
    Translator
    Salvador Roura
    Original language
    Catalan
    Other languages
    Catalan
    Official solutions
    C++ Java Python
    User solutions
    C C++ Java Python