#include <iostream>
using namespace std;
int main()
{
cout << " You Should make a line after write number of stars.." << endl;
string a;
cout << " 1 5 7 9 " << endl;
cout << " 2 6 9 8 " << endl;
cout << " 7 4 3 0 " << endl;
cout << " 6 0 1 9 " << endl;
cout << " Write a number of stars between 1 and 12 stars.." << endl;
cin >> a;
if ( a == "*")
{
cout << " 1 5 7" <<"***"<< "9 " << endl;
cout << " 2 6 9 8 " << endl;
cout << " 7 4 3 0 " << endl;
cout << " 6 0 1 9 " << endl;
}
if ( a == "**")
{
cout << " 1 5 7 9 " << endl;
cout << " 2 6" <<"***"<< "9 8 " << endl;
cout << " 7 4 3 0 " << endl;
cout << " 6 0 1 9 " << endl;
}
if ( a == "***")
{
cout << " 1 5 7 9 " << endl;
cout << " 2 6 9 8 " << endl;
cout << " 7 4 3 0 " << endl;
cout << " 6 0 1" <<"***"<< "9 " << endl;
}
if ( a == "****")
{
cout << " 1 5 7 9 " << endl;
cout << " 2 6 9 8 " << endl;
cout << " 7 4 3" <<"***"<< "0 " << endl;
cout << " 6 0 1 9 " << endl;
}
if ( a == "*****")
{
cout << " 1 5 7 9 " << endl;
cout << " 2 6 9 8 " << endl;
cout << " 7" <<"***"<< "4 3 0 " << endl;
cout << " 6 0 1 9 " << endl;
}
if ( a == "******")
{
cout << " 1" <<"***"<< "5 7 9 " << endl;
cout << " 2 6 9 8 " << endl;
cout << " 7 4 3 0 " << endl;
cout << " 6 0 1 9 " << endl;
}
if ( a == "*******")
{
cout << " 1 5 7 9 " << endl;
cout << " 2 6 9 8 " << endl;
cout << " 7 4 3 0 " << endl;
cout << " 6" <<"***"<< "0 1 9 " << endl;
}
if ( a == "********")
{
cout << " 1 5" <<"***"<< "7 9 " << endl;
cout << " 2 6 9 8 " << endl;
cout << " 7 4 3 0 " << endl;
cout << " 6 0 1 9 " << endl;
}
if ( a == "*********")
{
cout << " 1 5 7 9 " << endl;
cout << " 2 6 9 8 " << endl;
cout << " 7 4 3 0 " << endl;
cout << " 6 0" <<"***"<< "1 9 " << endl;
}
if ( a == "**********")
{
cout << " 1 5 7 9 " << endl;
cout << " 2 6 9 8 " << endl;
cout << " 7 4" <<"***"<< "3 0 " << endl;
cout << " 6 0 1 9 " << endl;
}
if ( a == "***********")
{
cout << " 1 5 7 9 " << endl;
cout << " 2" <<"***"<< "6 9 8 " << endl;
cout << " 7 4 3 0 " << endl;
cout << " 6 0 1 9 " << endl;
}
if ( a == "************")
{
cout << " 1 5 7 9 " << endl;
cout << " 2 6 9" <<"***"<< "k8 " << endl;
cout << " 7 4 3 0 " << endl;
cout << " 6 0 1 9 " << endl;
}
cout << " Now Choose another Number of star.." << endl;
string b;
cin >> b;
if ( b == "*")
{
cout << " 1 5 7 9 " << endl;
cout << " 2 6 9 8 " << endl;
cout << " 7" <<"***"<< "4 3 0 " << endl;
cout << " 6 0 1 9 " << endl;
}
if ( b == "**")
{
cout << " 1 5 7 9 " << endl;
cout << " 2 6 9" <<"***"<< "8 " << endl;
cout << " 7 4 3 0 " << endl;
cout << " 6 0 1 9 " << endl;
}
if ( b == "***")
{
cout << " 1" <<"***"<< "5 7 9 " << endl;
cout << " 2 6 9 8 " << endl;
cout << " 7 4 3 0 " << endl;
cout << " 6 0 1 9 " << endl;
}
if ( b == "****")
{
cout << " 1 5 7 9 " << endl;
cout << " 2 6 9 8 " << endl;
cout << " 7 4" <<"***"<< "3 0 " << endl;
cout << " 6 0 1 9 " << endl;
}
if ( b == "*****")
{
cout << " 1 5 7 9 " << endl;
cout << " 2 6" <<"***"<< "9 8 " << endl;
cout << " 7 4 3 0 " << endl;
cout << " 6 0 1 9 " << endl;
}
if ( b == "******")
{
cout << " 1 5 7 9 " << endl;
cout << " 2 6 9 8 " << endl;
cout << " 7 4 3 0 " << endl;
cout << " 6" <<"***"<< "0 1 9 " << endl;
}
if ( b == "*******")
{
cout << " 1 5 7" <<"***"<< "9 " << endl;
cout << " 2 6 9 8 " << endl;
cout << " 7 4 3 0 " << endl;
cout << " 6 0 1 9 " << endl;
}
if ( b == "********")
{
cout << " 1 5 7 9 " << endl;
cout << " 2 6 9 8 " << endl;
cout << " 7 4 3 0 " << endl;
cout << " 6 0 1" <<"***"<< "9 " << endl;
}
if ( b == "*********")
{
cout << " 1 5" <<"***"<< "7 9 " << endl;
cout << " 2 6 9 8 " << endl;
cout << " 7 4 3 0 " << endl;
cout << " 6 0 1 9 " << endl;
}
if ( b == "**********")
{
cout << " 1 5 7 9 " << endl;
cout << " 2 6 9 8 " << endl;
cout << " 7 4 3 0 " << endl;
cout << " 6 0" <<"***"<< "1 9 " << endl;
}
if ( b == "***********")
{
cout << " 1 5 7 9 " << endl;
cout << " 2" <<"***"<< "6 9 8 " << endl;
cout << " 7 4 3 0 " << endl;
cout << " 6 0 1 9 " << endl;
}
if ( b == "************")
{
cout << " 1 5 7 9 " << endl;
cout << " 2 6 9 8 " << endl;
cout << " 7 4 3" <<"***"<< "0 " << endl;
cout << " 6 0 1 9 " << endl;
}
}