LANDPLAN - Aby and Land Plan

no tags 

Aby is designing a rectangular land plan with a side length of N meters. For this reason, he wants to create a program to visualize the landform he wants.

Input

Input consist of multiple test case. The first line of input is T, denote the number of test case. The following T lines, there is only one integer N, the side length in meter.

Output

For every test case, print the visualized rectangular land plan. For the exact details, please look at the example.

Example

Input:
3
1
2
5

Output:
#

##
##

#####
#...#
#...#
#...#
#####

Constraint

  • 1 <= N <= 100


Added by:Bayu_Laksana
Date:2019-09-19
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:C NCSHARP JULIA PYPY3
Resource:Practice Problem IUP Basic Programming