#C10185. Construct HTML Document
Construct HTML Document
Construct HTML Document
You are given three parts of an HTML document:
- The head section, which includes the tags (and optionally some content inside).
- The opening body tag, which may include attributes (for example, ).
- 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:
- The first line contains the head section (including tags).
- The second line contains the opening body tag (including any attributes).
- 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) \\ $$## sampleTest
Hello, World!
Test
Hello, World!
!doctype>
$$!doctype>!doctype>