#include <iostream>
int main()
{
//part i
for (int i = 0; i < 3; i++)
{
//print space
for (int k = 3 - i; k >= 0; k--)
{
std::cout << " ";
}
//print star
for (int j = 0; j < i * 2 + 1; j++)
{
std::cout << "*";
}
std::cout << std::endl;
}
//part ii
for (int i = 3; i >= 0; i--)
{
//print space
for (int k = 3 - i; k >= 0; k--)
{
std::cout << " ";
}
//print star
for (int j = 0; j < i * 2 + 1; j++)
{
std::cout << "*";
}
std::cout << std::endl;
}
return 0;
}