Valya has been learning cross-stitch embroidery in her craft classes. To practice, she needed to create a template in the shape of a "cross," where the number of crosses along the diagonal equals the pattern number. Help Valya prepare the required number of templates.
First, the number of templates is given, followed by their numbers. All template numbers have a unique property: they are always odd and do not exceed .
For each template number in the input, output the corresponding template in the same order as the input, with each template separated by an empty line.
Example 1