HTML
When tackling the problem on the second page, the scientists faced another challenge: the manuscript was difficult to read. Professor Burunkin determined that to improve readability, the manuscript text should undergo three sequential transformations:
Eliminate all line breaks from the text.
Substitute every occurrence of "<BR>" with a line break.
Continuously remove any occurrence of "<*>", where "*" represents any sequence of characters (including an empty sequence) that does not contain the characters ">" or "<", until no more such patterns exist.
He also demonstrated that regardless of the sequence in which step 3 is applied, the final text will always be the same. Assist the scientists in making the manuscript readable.
Input
The input file contains the manuscript text, which is no longer than 60000 characters.
Output
Output the transformed text.