HTML#2831

HTML

1 second
64 megabytes
Hard

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:

  1. Remove all line breaks from the text.

  2. Replace every occurrence of "<BR>" with a line break.

  3. 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.

Input

The input contains the manuscript text (no more than characters).

Output

Print the transformed text.

Examples

Example 1

Loading
Loading