#include using namespace std; int main() { int n; cin >> n; for (int i = 1; i <= (n + 1) / 2; i++) { for (int j = 0; j < (n + 1) / 2 - i; j++) { cout << "-"; } if (n % 2 == 1) { cout << "*"; } else { cout << "**"; } for (int k = 1; k < i; k++){ cout << "**"; } for (int j = 0; j < (n + 1) / 2 - i; j++) { cout << "-"; } cout << endl; } for (int i = 0; i < n / 2; i++) { cout << "|"; for (int x = 0; x < n - 2; x++) { cout << "*"; } cout << "|" << endl; } return 0; }