Write a program that for every given prints an “octagon of size ” according to the pattern shown in the examples.
Input consists in several natural numbers .
For every , print an “octagon of size ” using capital exes. Do not print any space to the right of the exes. Print an empty line after each octagon.
Input
2 3 4
Output
XX XXXX XXXX XX XXX XXXXX XXXXXXX XXXXXXX XXXXXXX XXXXX XXX XXXX XXXXXX XXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXX XXXXXX XXXX