Broken Keyboard (a.k.a. Beiju Text)#2048

Broken Keyboard (a.k.a. Beiju Text)

1 second
64 megabytes
Very easy

You're typing a long text with a broken keyboard. It's not completely broken. The only issue is that sometimes the or key gets pressed automatically (internally).

You are unaware of this problem, since you are focusing on the text and did not even turn on the monitor! After finishing typing, when you turn on the monitor, you will see a text on the screen.

In Chinese, this is called Beiju. Your task is to determine the Beiju text.

Input

There are several test cases. Each test case is a single line containing at least one and at most letters, underscores, and two special characters: '[' and ']'. '[' means the key has been pressed internally, and ']' means the key has been pressed internally. The input ends at end-of-file (EOF). The input file size does not exceed .

Output

For each case, print the Beiju text on the screen.

Examples

Example 1

Loading
Loading