#C10185. Construct HTML Document

    ID: 39362 Type: Default 1000ms 256MiB

Construct HTML Document

Construct HTML Document

You are given three parts of an HTML document:

  1. The head section, which includes the tags (and optionally some content inside).
  2. The opening body tag, which may include attributes (for example, ).
  3. The body content, which is the inner HTML of the body (this line can be empty).

Your task is to construct a complete HTML document in the following format:

$$\texttt{} \\ \texttt{} \\ \texttt{head section} \\ \texttt{body start tag concatenated with body content and then a closing </body> tag} \\ \texttt{} $$

Make sure that the output document preserves the line breaks exactly as shown.

inputFormat

Input is provided via standard input (stdin) and consists of three lines:

  1. The first line contains the head section (including tags).
  2. The second line contains the opening body tag (including any attributes).
  3. The third line contains the body content (can be empty).

outputFormat

Print the complete HTML document to standard output (stdout). The document must be formatted as follows:

$$ \\ \\ (head section) \\ (body start tag concatenated with body content and a closing </body> tag) \\ $$## sample
Test

Hello, World!



Test

Hello, World!

$$