#include <stdio.h> #include <iostream> using namespace std; int main() { int col, row; char c; scanf("%d %c", &col, &c); if (col % 2 == 1){ row = col / 2 + 1; } else { row = col / 2; } for (int i = 0; i < col; i++){ putchar(c); } putchar('\n'); for (int i = 0; i < row - 2; i++){ putchar(c); for (int k = 0; k < col - 2; k++){ putchar(' '); } putchar(c); putchar('\n'); } for (int i =0; i < col;i++){ putchar(c); } return 0; }