#include <iostream>
#include <string>
using namespace std;
void print(int n);
int main()
{
int n;
cout << "please enter a number: " << endl;
cin >> n;
print(n);
}
void print(int n)
{
std::cout << std::string(n, '*') << '\n';
if (n > 1)
{
print(n - 1);
std::cout << std::string(n, '*') << '\n';
}
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKdm9pZCBwcmludChpbnQgbik7CgppbnQgbWFpbigpCnsKICAgIGludCBuOwogICAgY291dCA8PCAicGxlYXNlIGVudGVyIGEgbnVtYmVyOiAiIDw8IGVuZGw7CiAgICBjaW4gPj4gbjsKICAgIHByaW50KG4pOwp9Cgp2b2lkIHByaW50KGludCBuKQp7CiAgICBzdGQ6OmNvdXQgPDwgc3RkOjpzdHJpbmcobiwgJyonKSA8PCAnXG4nOwoKICAgIGlmIChuID4gMSkKICAgIHsKICAgICAgICBwcmludChuIC0gMSk7CiAgICAgICAgc3RkOjpjb3V0IDw8IHN0ZDo6c3RyaW5nKG4sICcqJykgPDwgJ1xuJzsKICAgIH0KfQ==