| # | Problem | Pass Rate (passed user / total user) |
|---|---|---|
| 11184 | A Naughty Boy |
|
Description
You are writing a homework that needs to hand in tomorrow, and there is a naughty boy try to ruin your efforts. The naughty boy sometimes presses the left arrow button or the right arrow button when you are typing with a keyboard, so the sequence of your text may not be the same as your wish. You are focus on your text, and you check the monitor only when you finish the text. Now, you are asked to find out the final result on the monitor.
Input
There are several test cases. Each test case is a single line containing at least one and at most 100000 letters, two special characters “<” and “>”.
“<” means the left arrow button is pressed internally, and “>” means right arrow button is pressed internally.
Output
For each case, print the final result of the monitor.