#include <iostream>
using namespace std;

int main()
{
	for (int y=1; y <=7; y++)
	{
		for (int x=1; x<=10; x++)
		{
            if (((x==1)||(x==10))&&((y==2)||(y==6)||(y==3)||(y==4)||(y==5)))
			cout << "*";

			else if ((y==1)||(y==7))
			cout <<"*";
			
			else if (((x==4)||(x==5)||(x==6)||(x==7))&&((y==3)||(y==5)))
			cout <<"*";
			
			else if (((x==4)||(x==7))&&(y==4))
			cout <<"*";
						
			else
			cout <<" ";
		}
		cout << endl;
	}
	
	return 0;
}
