Alice is playing a game of Twos and Threes. Twos and Threes is a one-player game played on a two-dimensional board containing a region to be covered. Alice has an infinite collection of dominoes and triominoes, i.e. tiles of the following shapes:
Alice can place her tiles on the board in any location and orientation. She wins the game if she finds a tiling of the region on the board such that all squares in the region are covered, all squares not in the region are not covered, and no two tiles overlap.
Bob, the inventor of Twos and Threes and archnemesis of Alice, is playing a game of Threes and Twos. The objective of Threes and Twos is to design frustrating regions for Alice. To understand the types of regions that are frustrating for Alice, we will need some definitions. In particular, we say that a region is connected if it is possible to reach any square in the region from any other square in the region travelling orthogonally. Furthermore, we say that a region is frustrating if:
- It contains at least two squares.
- It is connected.
- After removing any single square from the region, it splits into at most two connected regions.
- Alice does not have a winning tiling of the region.
Bob wins the game if he finds a frustrating region. Your task is to help Bob win by finding such a frustrating region.
There is no input for this problem.
On the first line output two space-separated integers and , the dimensions of the board.
On each of the next lines, output characters which are either
., representing squares that are in the region and squares that are not in the region, respectively. This should represent a board which contains a frustrating region.
If your output is improperly formatted or it does not contain a frustrating region, you will receive points.
Otherwise, let be the area of the frustrating region in your solution, and let be the area of the frustrating region in the smallest solution.
If , you will receive full points. Otherwise, you will receive a positive number of points based on how close is to . It is guaranteed that a solution with a larger will not score more points than a solution with a smaller .
3 5 .###. .#.#. .###.
Explanation for Sample
This output is only provided to clarify the output format. It represents the following region:
Note that it is not a frustrating region because it does not satisfy the fourth property; the following is a winning tiling of the region: