Fedir is very active online. He effortlessly searches for complex essays using world-renowned search engines, downloads music, and shares it with friends. He has joined many popular communities on LiveJournal. Naturally, he also spends a lot of time chatting with his internet friends via UCM (You Seek Me), a well-known chat client.
Fedir is a school student, and grammar is part of his curriculum. One day, his teacher assigned grammar homework: to write at least – sentences using indirect speech.
Fedir, however, does not want to copy standard sentences from school textbooks; he wants to be creative. So, an original idea occurred to him: why not take a few dialogues from his favorite UCM and convert them into indirect speech?
It's a good idea, but unfortunately, Fedir does not know how to program yet, as it is not taught at his school. Help him!
The input file contains a printout of one of the dialogues on UCM. The first line indicates when Fedir's conversation partner signed on, as follows:
HH:MM:SS: <Name> signed on
Here, HH:MM:SS: is the time the interlocutor signed on, and <Name> is the interlocutor's name written in transliteration (Latin letters). Each number in the time display uses two digits, so hours minutes seconds would be formatted as 09:43:05.
Each subsequent line (except for the very last line of the file) contains a participant's remark in the dialogue. If you number each remark, the odd-numbered ones are spoken by Fedir, and the even-numbered ones by his interlocutor.
Each remark is on a single line and includes a timestamp, the main content, and a punctuation mark at the end of the sentence.
The timestamp is formatted as: HH:MM:SS:.
The main content follows the timestamp, separated by a space, and consists of text made up of uppercase or lowercase Latin letters, numbers, spaces, apostrophes (used in place of soft and hard signs in transliteration), as well as commas, semicolons, and parentheses.
The punctuation mark can be an exclamation mark, a question mark, or a period. If omitted, a period is assumed.
Example of a remark:
HH:MM:SS: Ya skazal etu frazu.
The last line of the file is formatted as:
HH:MM:SS: <Name> signed off
where <Name> is the same interlocutor's name.
The input file size does not exceed kilobytes. Each line's length does not exceed characters.
For each remark, output it transformed into indirect speech.
The transformation is as follows: First, enclose the remark in double quotes. If it ends with a period, replace the period with a comma; otherwise, keep the punctuation mark unchanged. For example:
Zakanchivayu tochkoi. "Zakanchivayu tochkoi,"
Eto voskhititel'no! "Eto voskhititel'no!"
Then add a space, three "-" signs (dashes), another space, and then write the name of the person who made the remark and the word "skazal". Place a period after the word 'skazal'. Fedir is written as "Fedya", the interlocutor's name can be found in the input file's first line.
Example 1