#include <iostream>
#include <iomanip>
#include <string>
#include <cmath>


using namespace std;

void main() {
	//intialize variables for indicating the position in which "*" has to be printed
	int center(32), position(32);
	string output;
	char star = '*';
	int i;

	output = star;
	// print single "*"

	cout << setw(center) << output <<endl;
	for (i=1; i<5; i++){
		// Each step increment the number of * printed by 2
		// output = output+star+star adds 2 * to the output string
		output = output+star+star;
		position = position+1;
		cout << setw(position) << output <<endl;
	}
	// At the end of for loop output contains nine *
	// we need to print it twice

	for (i=0; i<2; i++){
		cout << setw(position) << output <<endl;
	}

	for (i=0; i<3; i++){
		output = "*       *";
		cout << setw(position) << output <<endl;
	}

	for (i=0; i<5; i++){
		output = "*********";
		cout << setw(position) << output <<endl;
	}


	
}
