!terces poT

No attempts yetTime limit1sMemory limit256 MB

Problem

You pick up a strange note on the street. The note holds a cipher, and you work out that reversing the cipher gives back the original sentence.

Write a program that decodes the ciphers.

Input

Each line holds one cipher. A cipher is at most 500 characters long.

The last line is END. That line marks the end of the input and is not decoded. Only a line equal to END ends the input, so ENDING and end are decoded like any other cipher.

Output

Print the decoded sentence for each cipher, one per line, in input order.