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

~/algor $ cat problems/integer-raqamlarni-chapga-surish

Rotate the digits left

Easy 1000 ms 64 MB 15%
Share

A three-digit positive integer $n$ is given. Find the number obtained by moving its first digit to the end: $123$ gives $231$. Leading zeros of the result are not written: for example, $105$ gives $51$.

The first digit moves to the end and the other digits shift left

Input

One three-digit positive integer $n$.

Output

One integer — the resulting number.

Note

$100 \le n \le 999$

Examples

Input #1
123
Output #1
231
Input #2
105
Output #2
51

Sign in to submit a solution

Signing up is free and takes a minute.