#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int middle = n / 2;
for (int i = 0; i < n; ++i) {
int upperIndex = i, lowerIndex = n - i - 1;
for (int j = 0; j < n; ++j) {
if ((j == middle - upperIndex || j == middle + upperIndex)
|| (j == middle - lowerIndex || j == middle + lowerIndex)) {
cout << "*";
} else {
cout << " ";
}
}
cout << "\n";
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgbjsKCWNpbiA+PiBuOwoJaW50IG1pZGRsZSA9IG4gLyAyOwoJZm9yIChpbnQgaSA9IDA7IGkgPCBuOyArK2kpIHsKCQlpbnQgdXBwZXJJbmRleCA9IGksIGxvd2VySW5kZXggPSBuIC0gaSAtIDE7CgkJZm9yIChpbnQgaiA9IDA7IGogPCBuOyArK2opIHsKCQkJaWYgKChqID09IG1pZGRsZSAtIHVwcGVySW5kZXggfHwgaiA9PSBtaWRkbGUgKyB1cHBlckluZGV4KSAKCQkJfHwgKGogPT0gbWlkZGxlIC0gbG93ZXJJbmRleCB8fCBqID09IG1pZGRsZSArIGxvd2VySW5kZXgpKSB7CgkJCQljb3V0IDw8ICIqIjsKCQkJfSBlbHNlIHsKCQkJCWNvdXQgPDwgIiAiOwoJCQl9CgkJfQoJCWNvdXQgPDwgIlxuIjsKCX0KCXJldHVybiAwOwp9