Reverse a String

Lab Python Beginner 10 points

Read a line and print it reversed.

Input

One line.

Output

The reversed line.

Example

Input

hello

Output

olleh
Sample input available Sample output available
Editor
Python

Hints

A slice can have a step: s[start:stop:step].

A step of -1 walks backwards.

Solution explanation

s[::-1] is the idiomatic way to reverse a sequence.

Show solution
print(input()[::-1])
Output
Answer
HOME LEARN COMMUNITY DASHBOARD