Reverse a String

MEDIUM · C · 2000ms

For a fun "mirror mode" feature, the kiosk should take whatever a visitor types and show it to them reversed, letter by letter. Read a string and print it reversed.

Input

One string S.

Output

S reversed.

Constraints

1 ≤ |S| ≤ 10^5

Sample Input

abcd

Sample Output

dcba
main.c
Loading editor…

Write C, then Run (custom I/O) or Submit (sample tests). ⌘/Ctrl+Enter submits.

Reverse a String · DIU ContestHub