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

~/algor $ cat problems/string-teskari-satr

Reverse a string

Easy 1000 ms 128 MB 21%
Share

A string $s$ of lowercase Latin letters is given. Print its characters in reverse order.

Placing the characters of the string from the end to the beginning

Input

One line containing the string $s$.

Output

The reversed string on one line.

Note

$1 \le |s| \le 10^{5}$
$s$ consists of lowercase Latin letters (a–z) only

Examples

Input #1
algoritm
Output #1
mtirogla
Input #2
aba
Output #2
aba

Sign in to submit a solution

Signing up is free and takes a minute.