All problems

Reverse a String

easyPythonStrings

A sign shop prints vinyl lettering that is applied to the inside of a shop window, so the text has to be laid out back to front before it goes to the cutter. The operator types a word and the tool shows how it must be cut.

Task: Read one word and print the same characters in the opposite order.

Input

A single line holding a string s of 1 to 100 characters. The characters are lowercase letters, with no spaces and no punctuation.

Output

One line holding the reversed string, and nothing else.

Example:

Input:
hello

Output:
olleh

Sign in to solve this problem

Reading problems is free for everyone — solving them (Run, Submit, and tracking what you've solved) needs an account.

Sign in

Discussion

Sign in to join the discussion — reading is open to everyone.

Loading comments…