VSTRIPS - Vertical strips pattern

Generate following pattern for given size:

.x.x.
.x.x.
.x.x.
.x.x.
.x.x.

Input

Each test file has n test cases, first line of input has integer n denoting number of test cases, followed by n lines each with a integer denoting the size s.

0 < n < 10

3 <= s <= 50

Output

For each test case print the above mentioned pattern and a empty line.

Example

Input:
3
4
3
5 Output: .x.x
.x.x
.x.x
.x.x

.x.
.x.
.x.

.x.x.
.x.x.
.x.x.
.x.x.
.x.x.

Added by:jack(chakradarraju)
Date:2018-05-09
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All

© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.