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

~/algor $ cat problems/raqamlarni-almashtirish

Swap the digits

Easy 1000 ms 64 MB 14%
Share

A two-digit positive integer $n$ is given. Find the number obtained by swapping its digits. Leading zeros of the result are not written: for example, $40$ gives $4$.

The digits of the two-digit number swap places

Input

One two-digit positive integer $n$.

Output

One integer — the number with swapped digits.

Note

$10 \le n \le 99$

Examples

Input #1
42
Output #1
24
Input #2
40
Output #2
4

Sign in to submit a solution

Signing up is free and takes a minute.