Easy octagons

Write a program that for every given nn prints an “octagon of size nn” according to the pattern shown in the examples.

Input

Input consists in several natural numbers n2n \ge 2.

Output

For every nn, print an “octagon of size nn” using capital exes. Do not print any space to the right of the exes. Print an empty line after each octagon.

Problem information

Author: Unknown
Translator: Salvador Roura

Generation: 2026-01-25T12:11:19.912Z

© Jutge.org, 2006–2026.
https://jutge.org