As is known to all, the operating system of
Yuangq‘s computer(t
hat picked up from the garbage dump) is rubbidows system, and rubbidows system always makes Yuangq feels blackout in unexpected ways...
The Spring Festival is coming, and Yuangq sends his best friend Waylon a greeting message:
Happy new year!. However, as he typed
Happy, the screen displayed
pypHa...
Yuangq has no idea what happened, so he started messing around with the system. After a series of wired operations, he found that the rubbidows system would automatically press the
home key or
end key off and on.
Fortunately, Waylon provided an accurate hint: the rubbidows system will perform operation

(

) at second

, where operation

involves automatically pressing the
home key, and operation

involves automatically pressing the
end key.
The start time is

second, and it takes

second to enter each character. The operation must be performed after the character entering. In other words, if

, then only after rubbidows system typing the

character, will the rubbidows system automatically press the
home or
end key.
Since Yuangq had spent all his money on buying gifts, he didn't have enough money to buy the official Rubbish&Windows version, so Yuangq decided to input in a different way. He wants to know in what order he has to input to make the string be input correctly.
About the home and end keys:
The home key moves the cursor to the first word on the first line of the editing or non-editing window. The end key is just the opposite, and the cursor will be positioned at the end.