When solving the problem on the second page, the scientists faced a new challenge: the manuscript was difficult to read. Professor Burunkin determined that, for better readability, the manuscript should undergo the following three transformations in sequence:
Remove all line breaks from the text.
Replace every occurrence of "<BR>" with a line break.
Continuously remove any occurrence of "<*>", where "*" is any sequence of characters (possibly empty) that does not contain the characters ">" or "<", until no more such patterns remain.
He also showed that, no matter the order in which step 3 is applied, the final text will always be the same. Help the scientists read the manuscript.
The input contains the manuscript text (no more than characters).
Print the transformed text.

Example 1