Problem D: 3-D Print

Problem D: 3-D Print

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 2989  Solved: 911
[Submit][Status][Web Board]

Description

Please write a program to print a 3D cuboid with length a, width b and height c. You can see the details in the sample input and output.


Input

The first line of input is the number of test cases T (1 <= T <= 100)

For each test case, the first line will be three integers a, b and c (1 <= a, b, c <= 30).


Output

For each test case, print the cuboid as the sample output.


Sample Input

2
1 1 1
6 2 4

Sample Output

..+-+
././|
+-+.+
|.|/.
+-+..
....+-+-+-+-+-+-+
.../././././././|
..+-+-+-+-+-+-+.+
./././././././|/|
+-+-+-+-+-+-+.+.+
|.|.|.|.|.|.|/|/|
+-+-+-+-+-+-+.+.+
|.|.|.|.|.|.|/|/|
+-+-+-+-+-+-+.+.+
|.|.|.|.|.|.|/|/.
+-+-+-+-+-+-+.+..
|.|.|.|.|.|.|/...
+-+-+-+-+-+-+....

HINT

[Submit][Status]