class Main
{
public static void main
(String[] args
) {
stars();
}
static void stars()
{
final int MAX_WIDTH = 7;
for (int i = 0; i < 7; ++i)
{
int width;
if (i < 3) width = MAX_WIDTH - i * 2;
else if (i > 3) width = (i - 3) * 2 + 1;
else width = 1;
// Before spaces
for (int j = 0; j < (MAX_WIDTH - width) / 2; ++j)
{
}
// Stars
for (int j = 0; j < width; ++j)
{
}
// After spaces
for (int j = 0; j < (MAX_WIDTH - width) / 2; ++j)
{
}
}
}
}
Y2xhc3MgTWFpbgp7CiAgICBwdWJsaWMgc3RhdGljIHZvaWQgbWFpbihTdHJpbmdbXSBhcmdzKQogICAgewogICAgICAgIHN0YXJzKCk7CiAgICB9CiAgICAKICAgIHN0YXRpYyB2b2lkIHN0YXJzKCkKICAgIHsKICAgICAgICBmaW5hbCBpbnQgTUFYX1dJRFRIID0gNzsKICAgICAgICAKICAgICAgICBmb3IgKGludCBpID0gMDsgaSA8IDc7ICsraSkKICAgICAgICB7CiAgICAgICAgICAgIGludCB3aWR0aDsKICAgICAgICAgICAgCiAgICAgICAgICAgIGlmIChpIDwgMykgd2lkdGggPSBNQVhfV0lEVEggLSBpICogMjsKICAgICAgICAgICAgZWxzZSBpZiAoaSA+IDMpIHdpZHRoID0gKGkgLSAzKSAqIDIgKyAxOwogICAgICAgICAgICBlbHNlIHdpZHRoID0gMTsKICAgICAgICAgICAgCiAgICAgICAgICAgIC8vIEJlZm9yZSBzcGFjZXMKICAgICAgICAgICAgCiAgICAgICAgICAgIGZvciAoaW50IGogPSAwOyBqIDwgKE1BWF9XSURUSCAtIHdpZHRoKSAvIDI7ICsraikKICAgICAgICAgICAgewogICAgICAgICAgICAgICAgU3lzdGVtLm91dC5wcmludCgiICIpOwogICAgICAgICAgICB9CiAgICAgICAgICAgIAogICAgICAgICAgICAvLyBTdGFycwogICAgICAgICAgICAKICAgICAgICAgICAgZm9yIChpbnQgaiA9IDA7IGogPCB3aWR0aDsgKytqKQogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICBTeXN0ZW0ub3V0LnByaW50KCIqIik7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgCiAgICAgICAgICAgIC8vIEFmdGVyIHNwYWNlcwogICAgICAgICAgICAKICAgICAgICAgICAgZm9yIChpbnQgaiA9IDA7IGogPCAoTUFYX1dJRFRIIC0gd2lkdGgpIC8gMjsgKytqKQogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICBTeXN0ZW0ub3V0LnByaW50KCIgIik7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgCiAgICAgICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbigpOwogICAgICAgIH0KICAgIH0KfQ==