#include <cstdio>
int main(void) {
for(int i = 1;i<=4;i++){
for(int j = 1;j<=4-i;j++){
printf(" ");
}
for(int k = 1;k<=2*i-1;k++){
printf("*");
}
printf("\n");
}
// 5 3 1
for(int i = 1;i<=3;i++){
for(int j = 1;j<=i;j++){
printf(" ");
}
for(int k = 1;k<=7-2*i;k++){
printf("*");
}
printf("\n");
}
}
#include <iostream>
#include <math.h>
using namespace std;
int main(void) {
int n;
cin >> n;
int cx = n/2;
int cy = n/2;
for (int i = 0; i < n; i++)
{
for (int j = 0; j < n; j++)
{
if(abs(i - cx) + abs(j-cy) <= n/2){
cout << "*";
}
else {
cout << " ";
}
}
cout << endl;
}
}