Under construction

Still being built. Things may change

Hello, World!

Time limit1sMemory limit1024 MB

Summary
Given N SPAUSDINTI commands, print the text inside each pair of quotes in order, turning the newline marker into a line break.
Level

Easy2 of 10

Topics
String, Simulation
Solved
No attempts yet

Problem

Paulius built a small computer. A screen attached to it will hang in a clearly visible place and show messages from friends on social networks.

Paulius is now writing the output command SPAUSDINTI, which displays the given text on the screen. It also understands one special instruction, \n, which means continue on a new line.

Syntax of the SPAUSDINTI command: the command starts with the keyword SPAUSDINTI written in uppercase letters. After one space comes the text to print, enclosed in double quotes ("). The quotes are not printed.

The printed text may contain these characters: Latin uppercase and lowercase letters, digits, and the symbols , ./ <>?; : []{}|()− = _ + @! ∗ %$&#

The printed text contains no spaces. If the quotes contain a newline command (two consecutive characters \n), those two characters are not printed. They are treated as an instruction to continue the following text on a new line.

The SPAUSDINTI command prints text on the same line where the previous command stopped. Only the \n instruction moves output to a new line.

The given program consists only of SPAUSDINTI commands. Write a program that interprets these commands and prints the result.

Input

The first line contains the number N of SPAUSDINTI commands in the program. The next N lines each contain one command. The program is syntactically correct, and each line is no longer than 250 characters.

Output

Print the text that the given program would print.

Constraints

1≤N≤10001 \le N \le 1000

Examples2

  1. Example 1

    Input
    2
    SPAUSDINTI "Sveikas,_"
    SPAUSDINTI "Pasauli!"
    
    Expected output
    Sveikas,_Pasauli!
    
  2. Example 2

    Input
    1
    SPAUSDINTI "Lietuvos\\n\nmokiniu\ninformatikos\nolimpiada"
    
    Expected output
    Lietuvos\
    
    mokiniu
    informatikos
    olimpiada