|시간 제한||메모리 제한||제출||정답||맞은 사람||정답 비율|
|1 초||128 MB||16||9||8||53.333%|
Walking towards his parked car, John was amused to note what appeared to be a string of gibberish painted along the front of an emergency vehicle parked behind him: ECNALUBMA. It was only after he climbed into his own car and glanced into his rear-view mirror that the string suddenly made sense: AMBULANCE.
John belatedly realized that even the individual letters had been reversed, but that he had mentally corrected these without even being aware of doing so. It was the rearrangement of the letters into an appropriate word that had stymied him.
Fascinated with this idea, John would now like to practice his mirror-reading skills. Write a program that accepts input phrases and prints them, reversing the order of the characters.
Input consists of one or more lines, each containing from 1 to 80 printable ASCII characters (alphabetics, numerals, blanks, and punctuation).
End of input is signaled by a line containing only the string “***”.
For each line of input data, your program should print a single line of output containing the same characters as the input line, in reverse order.
AMBULANCE Evian madam, i'm adam ***
ECNALUBMA naivE mada m'i ,madam