← Problem book: C Lesson 7 of 96 · 10 XP

Three-digit number reversed

Theory and problem statement

Machine translation, not yet reviewed by a native speaker.

You are given a three-digit number n. Print the number written with the same digits in reverse order. Leading zeros are not written: 120 becomes 21.

Example

Input:

123

Output:

321

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