#include <iostream>
using namespace std;
int n;
int main(){
cin >> n;
for(int i = 1; i <= n; i++){
for(int j = n - i; j >=1; j--)
putchar(' ');
for(int j = (i - 1) * 2; j >=0; j--)
putchar('*');
for(int j = (n - i) * 2; j >=1; j--)
putchar(' ');
for(int j = (i - 1) * 2; j >=0; j--)
putchar('*');
for(int j = (n - i) * 2; j >=1; j--)
putchar(' ');
for(int j = (i - 1) * 2; j >=0; j--)
putchar('*');
putchar('\n');
}
}
/**************************************************************
Problem: 1006
User: long
Language: C++
Result: Accepted
Time:4 ms
Memory:2072 kb
****************************************************************/