Reversed number P50327


Statement
 

pdf   zip

html

Write a program that reads a number and prints it reversed.

Input

Input consists of a natural number.

Output

Print the number reversed, with as many zeros at its left as it has at its right.

Public test cases
  • Input

    16
    

    Output

    61
    
  • Input

    1023
    

    Output

    3201
    
  • Input

    90800
    

    Output

    00809
    
  • Input

    65547
    

    Output

    74556
    
  • Input

    0
    

    Output

    0
    
  • Input

    1000000000
    

    Output

    0000000001
    
  • Information
    Author
    Jordi Petit
    Language
    English
    Translator
    Carlos Molina
    Original language
    Catalan
    Other languages
    Catalan
    Official solutions
    C++ Java Pascal Python
    User solutions
    Brainfuck C C++ Java Python Ruby