# The Tower of ASCII

The tower of ASCII is a nice tower made of asterisk () , hash sign (#) and periods (.). A sample tower could be : #*# #....# #........# #........# #............# #............# #............# #..............# #..............# #..............# Fig : Tower of Height 10 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 : #** **# **# # # #### ###

## 12345

So there are two types of piece. One is T-shape(1,5) and another is 1-shape(2,3,4). T-shape pieces construct the Left part of TOA whether 1-shape pieces make the right part. Each piece width is fixed which is 3. But the height can be any positive integer. The intermediate spaces is filled with period. 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

2/2 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 couldbe(9,2,1)or(8,3,1)or(7,3,2)or(7,4,1)etc. Butonly(6,3,2,1)and(9,2,1)willbe 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. Input The input will contain an integer H (5 ≤ H ≤ 500) per line. Input is terminated by EOF. Output 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. Sample Input 5 10 Sample Output Tower #1 ## #**....# #......# #......# #......# Tower #2 ## #....# #........# #........# #............# #............# #**............# #..............# #..............# #..............#