XML-converter#438

XML-converter

1 second
64 megabytes
Hard

XML format is used for storing various structural information and for exchanging data between programs. In a certain program, this format was used to store configuration files. In the new version of the program, to improve its performance, it was decided to use a simplified XML format.

Element and attribute names consist only of Latin letters, digits, underscores, dots, and hyphens. Names are no longer than characters. VALUE2 in ' does not contain the ' character. VALUE3 in " does not contain the " character. Except for this, VALUE2 and VALUE3 may contain any characters, including line breaks. TEXT may contain nested elements, which are subject to a similar transformation. After the element name and after attributes, there may be several spaces, tab characters, and line breaks. These characters should not be output in the resulting file.

When installing the new program version, it is required to convert the configuration files into the new simplified format. Write a program that performs this conversion.

Input

The input file contains one or more lines of text containing XML elements.

Output

Print the converted text to the output file, in which the XML elements are written in the new simplified XML format.

Examples

Example 1

Loading
Loading