The Tower of ASCII |

The tower of ASCII is a nice tower made of asterisk (*) , hash sign (#) and periods (.) . A sample tower could be :

The tower of ASCII (TOA) has the following properties :

1. It has a fixed height, H.

2. Its external architecture is made up of several pieces of different sizes like :

3. The number of pieces in Left part is always 1 more than that of right part. In the example TOA in left part pieces of 4,3,2,1 height and in right part pieces of 7,2,1 height have been used.

4. The total number of pieces used in a TOA is it's cardinality. In our example the cardinality is 4+3=7. A TOA of fixed height also has a fixed cardinality.

5. In each part pieces of greater height will precede pieces of less height. In the given example no alternation of ( 4,3,2,1 ) order is possible. And also pieces of same height can be used only once in one part.

6. There is one and only one TOA of height H.

As specified in the properties that for a particular height the cardinality is fixed. To ensure this, the maximum possible cardinality is chosen for a TOA. Thus in our example 7 is the maximum cardinality for height,10. To make the TOA unique in each part the pieces of maximum height are chosen. Such as in case of TOA of height 12 the left part could be ( 6,3,2,1 ) or ( 5,4,2,1 ). Whether the right part could be ( 9,2,1 ) or ( 8,3,1 ) or ( 7,3,2 ) or ( 7,4,1 ) etc. But only ( 6,3,2,1 ) and ( 9,2,1 ) will be considered for the left and right part.

Lets come to your task. You have to build a TOA of given height H using T-shape and 1-shape piece. You may consider each piece of any height is available.

The input will contain an integer H (5<=H<=500) per line. Input is terminated by EOF.

The output specification starts with a line "Tower : #N" where N is the current TOA. In next H lines you have to draw the TOA of height H. Look in each line the starting hash sign may contain leading spaces but the ending hash sign should not be followed by any space. You have to use a line break after each ending hash sign. Print a blank line after each TOA.

5 10

Tower #1 #****# #**....# #......# #......# #......# Tower #2 #****# #**....**# #........# #**........**# #............# #............# #**............# #..............# #..............# #..............#

## Md. Kamruzzaman