import java.util.*;
import java.lang.*;
import java.util.regex.Pattern;
import java.util.regex.Matcher;
class Main
{
{
Pattern pattern = Pattern.compile("!\\[(.*?)*\\]");
Matcher matcher = pattern.matcher(test);
while (matcher.find()) {
System.
out.
println(matcher.
group(1)); }
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLnV0aWwucmVnZXguUGF0dGVybjsKaW1wb3J0IGphdmEudXRpbC5yZWdleC5NYXRjaGVyOwogCmNsYXNzIE1haW4KewogICAgICAgIHB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgogICAgICAgIHsKCQkJUGF0dGVybiBwYXR0ZXJuID0gUGF0dGVybi5jb21waWxlKCIhXFxbKC4qPykqXFxdIik7CgkJCVN0cmluZyB0ZXN0ID0gIiFbXVtdW10iOwoJCQlNYXRjaGVyIG1hdGNoZXIgPSBwYXR0ZXJuLm1hdGNoZXIodGVzdCk7CgkJCXdoaWxlIChtYXRjaGVyLmZpbmQoKSkgewoJCQkgICBTeXN0ZW0ub3V0LnByaW50bG4obWF0Y2hlci5ncm91cCgxKSk7CgkJCX0KICAgICAgICB9Cn0=