Reverse a StringEasy

Reverse a String

EasyPractice library · +10 XPstackstring

Given a string S, print the string in reverse order. For example, if the input is "hello", the output should be "olleh".

Input

A single line containing the string S.

Output

A single line containing the reversed string.

Constraints

1 <= length of S <= 1000

Time limit 1 s (native code; slower languages get more)Memory 256 MB12 hidden tests

Example 1

Input
hello
Output
olleh

The string "hello" reversed is "olleh".

Example 2

Input
UptoSkills
Output
sllikSotpU

The string "UptoSkills" reversed is "sllikstpO".

Hints