Reverse a line

EasyBasicsStrings

Read a line of text and print it backwards, last character first.

Input

One line: 1 to 1000 letters, digits, spaces and punctuation. It does not start or end with a space.

Output

The same characters in reverse order.

The input is read for you. The starter code puts it in variables; write your code under Your code here and print the answer. Changed the code already? Reset () brings the starter back.

Example 1

Input
hello
Output
olleh
Why:

h-e-l-l-o read from the end is o-l-l-e-h.

Example 2

Input
Ada Lovelace
Output
ecalevoL adA
Why:

The space moves too.

Hints

    Was this a good challenge?

    Solved by
    0
    Submissions
    0
    Accepted
    –