← Problem book: Python Lesson 42 of 96 · 10 XP

Number reversed

Theory and problem statement

Machine translation, not yet reviewed by a native speaker.

You are given an integer n (n ≥ 0). Print the number written with its digits in reverse order. Leading zeros are not written.

Example

Input:

1234

Output:

4321

Sign up for free to solve this task right in your browser: code editor, running, test checks and hints.