#include<bits/stdc++.h>
using namespace std;
int main () {
	int n,m = 1;
	cin >> n;
	for (int i = 1;i <= n; i ++){
		m = 1;
		for (int j = 1;j <=n - i; j++) {
			cout << " ";
		}
		for (int k = 1;k <= i * 2 - 1; k++) {
		    if (m == 1) {
		    	cout << "*";
			}
			else {
				cout << " ";
			}
			m *= -1;
		}
		cout << endl;
 
	}
	return 0;
}