#include<bits/stdc++.h>
using namespace std;
int main()
{
	int i,n,j,k,o=1;
	char xy;
	cin>>n>>xy;
	k=1+(n-1)*2;
	if(xy=='x'){
		for(i=1;i<=n;i++){
			for(j=1;j<=(k-o)/2;j++){
				cout<<" ";
			}
			for(j=1;j<=o;j++){
				cout<<"*";
			}
			for(j=1;j<=(k-o)/2;j++){
				cout<<" ";
			}
			for(j=1;j<=(k-o)/2;j++){
				cout<<" ";
			}
			for(j=1;j<=o;j++){
				cout<<"*";
			}
			for(j=1;j<=(k-o)/2;j++){
				cout<<" ";
			}
			cout<<endl;
			o+=2;
		}
	}
	else{
		for(i=1;i<=n;i++){
			for(j=1;j<=(k-o)/2;j++){
				cout<<" ";
			}
			for(j=1;j<=o;j++){
				cout<<"*";
			}
			for(j=1;j<=(k-o)/2;j++){
				cout<<" ";
			}
			o+=2;
			cout<<endl;
		}
		for(i=0;i<n;i++){
			for(j=i;j>=1;j--){
				cout<<" ";
			}
			for(j=k-i*2;j>=1;j--){
				cout<<"*";
			}
			for(j=i;j>=1;j--){
				cout<<" ";
			}
			cout<<endl;
		}
	}
return 0;
}
/**************************************************************
	Problem: 1353
	User: houshanglin
	Language: C++
	Result: Wrong Answer
****************************************************************/