Reverse a String

EasyBasics
Next
String

Read a line of text and print it reversed, character by character.

Input

A single line of text (it may contain spaces).

Output

Print the line reversed.

Constraints

1 <= length <= 1000

Example 1
Input
hello
Output
olleh

The letters appear in reverse order.

Example 2
Input
Skill Shiksha
Output
ahskihS llikS

The space is reversed along with the letters.

Hints

Reverse a String - Easy Basics Problem | Skill Shiksha