#include <iostream>
using namespace std;

int main() {
	// your code goes here
	int n;
    cin >> n;
    int x = (n / 2) + 1;

    // First part
    for (int i = 0; i < x; i++) {
        for (int j = 0; j < x - i - 1; j++) {
            cout << ".";
        }
        for (int j = 0; j < 2 * i + 1; j++) {
            cout << "*";
        }
        cout << endl;
    }

    // Second part
    for (int i = 0; i <(n - x); i++) {
        for (int j = 0; j < i; j++) {
            cout << ".";
        }
        for (int j = 0; j < n - (2 * i); j++) {
            cout << "*";
        }
        cout << endl;
    }
	return 0;
}