There is a monkey in a zoo. One day, the animal trainer gives the monkey a typewriter. The monkey starts to press the buttons randomly.
The typewriter contains the following buttons.
1. '@' means the 'Home' key:
Return the cursor to the beginning of the sentence.
2. '#' means the 'End' key:
Put the cursor at the end of the sentence.
3. '%' means the 'Delete' key:
Delete one character to the right of the cursor.
HINT:

There is one line that contains at least one and at most 100,000 characters which represent what the monkey types.
Print out the result that will be displayed on the screen for the monkey’s typing. Your program should print the answer followed by a new line character.