Square Designs

아직 제출이 없습니다시간 제한1초메모리 제한1024 MB

문제

Write a program that will generate Square Designs like the ones below for any values of M and N (1 ≤ M ≤ 18; 1 ≤ N ≤ 18). Exactly ten spaces separate the pair of boxes and the left box has no spaces in front of it. There are neither "tabs" nor trailing spaces in the output.

Here is the output for M=5 and N=3:

+-----------+          +-------+
I-X-X-X-X-X-I          I-X-X-X-I
I-X-X-X-X-X-I          I-X-X-X-I
I-X-X-X-X-X-I          I-X-X-X-I
I-X-X-X-X-X-I          +-------+
I-X-X-X-X-X-I
+-----------+

This output contains no blank lines.

입력

A single line containing two integers, M and N.

출력

Several output lines that create the design as shown above.