Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/teskari-son

Reversed number

Easy 1000 ms 64 MB 15%
Share

A three-digit positive integer $n$ is given. Find the number obtained by writing its digits in reverse order. Leading zeros of the result are not written: for example, $120$ gives $21$.

The digits of the three-digit number rearranged in reverse order

Input

One three-digit positive integer $n$.

Output

One integer — the number made of the digits in reverse order.

Note

$100 \le n \le 999$

Examples

Input #1
123
Output #1
321
Input #2
120
Output #2
21

Sign in to submit a solution

Signing up is free and takes a minute.