Students of Voronezh State University not only participate in various programming competitions. This time, in another city, Nikita suggested visiting the fine arts museum. Out of all the paintings, he was most impressed by the works of Ivan Shishkin. Inspired by the great Russian painter, Nikita decided to create his own masterpiece in the form of an ASCII drawing. For the ASCII drawing to be a masterpiece, it must have the following:
Correct tree drawings.
Incorrect tree drawings. ![]() | ![]() |
Given $$$n$$$ trees, tell us what Nikita's masterpiece will look like!
If there are several possible answers that fit all of the above conditions, any of them may be output.
The first line contains a single integer $$$n$$$ ($$$1 \le n \le 8$$$) – the number of trees.
The following $$$n$$$ lines contain two integers $$$s_{i}$$$ and $$$t_{i}$$$ ($$$1 \le s_{i}, t_{i} \le 10$$$) – the parameters of the $$$i$$$-th tree.
Output the ASCII drawing.
The output data should not contain any extra characters that do not belong to the drawing!
3 1 1 2 2 3 3
+-----------+ | + | | +++ | | +++++ * | |+++++++*** | | # | *****| |###| | | | | | | | +-----------+
41 11 11 11 1
+------------+ | + * + * | |+++***+++***| | | | | | | +------------+