#include <iostream>
#include <iomanip>
int main()
{
std::cout << "enter row amount\n";
int x;
std::cin >> x;
for(int i = 0; i < x - 1; ++i) {
std::cout << std::setw(x - i) << '*';
if (i != 0)
std::cout << std::setw(i*2) << '*';
std::cout << '\n';
}
std::cout << std::setw(x*2) << std::setfill('*') << '\n' << std::setfill(' ');
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8aW9tYW5pcD4KCmludCBtYWluKCkKewogICAgc3RkOjpjb3V0IDw8ICJlbnRlciByb3cgYW1vdW50XG4iOwogICAgaW50IHg7CiAgICBzdGQ6OmNpbiA+PiB4OwogICAgZm9yKGludCBpID0gMDsgaSA8IHggLSAxOyArK2kpIHsKICAgICAgICBzdGQ6OmNvdXQgPDwgc3RkOjpzZXR3KHggLSBpKSA8PCAnKic7CiAgICAgICAgaWYgKGkgIT0gMCkKICAgICAgICAgICAgc3RkOjpjb3V0IDw8IHN0ZDo6c2V0dyhpKjIpIDw8ICcqJzsKICAgICAgICBzdGQ6OmNvdXQgPDwgJ1xuJzsKICAgIH0KICAgIHN0ZDo6Y291dCA8PCBzdGQ6OnNldHcoeCoyKSA8PCBzdGQ6OnNldGZpbGwoJyonKSA8PCAnXG4nIDw8IHN0ZDo6c2V0ZmlsbCgnICcpOwp9