[Update] There's new-line characters ('\n') in the input test cases, you should ignore it.
[Update] You do not need to add an extra '\n' at the end of output!
[Notice] Input contains space character (' ')!
Some people prefer to use vim to code.
Vim is a powerful text editor. Using vim, you can code in a terminal. Usually we code with vim on a remote server, since there is no GUI applications (like CodeBlocks or Visual Studio Code) available.
Besides the basic functionality, you can install a variety of plugins to make vim looks fancy and convenient.
This is how it looks like to coding with vim

Now, we ask you to simulate the most basic functionality of a text editor: typing.
Given a operation sequence, please show us the final look on the terminal. (Suppose we started in "Insert" state in vim, that is, what we type will be treated as text and directly shows on the screen. For those who don't know the "Insert" state, try google for it or just ignore it and keeps reading the problem description~)
Input consists of a single line, representing the operation sequence.
Below we explain the meaning of each character in the operation sequence:
Suppose the initial terminal size is 80*24. (x=80, y=24). x is the width of the terminal, means there can be at most x characters (including ' ') in a single row on the screen.
The final output is guaranteed to not exceed the size of the terminal. (Total rows on screen will be less than or equal to y)
The length of operation sequence won't exceed 105.
Show the final look on the terminal.
Notice the width of the screen. If a line contains too many characters to fit into the width x, then you should print the remaining characters of this line on the following rows on screen.
For example :
t\b\bThis is the sample input\l\l\l\l\bI\r\r\r\r\n\s [10 20]
The first line will be “This is the sample Input\n”(without quotes).
But since the the terminal size is 10*20, the output should be as following(without quotes):
“This is th
e sample I
nput
“
For more information, please refer to Sample Input and Sample Output.