import java.util.*;
import java.util.regex.*;
class Main
{
{
String s
= "Input one Input Two Input Three"; Pattern pat = Pattern.compile("Input(.*?)(?=Input|$)");
Matcher m = pat.matcher(s);
while (m.find()) {
System.
out.
println(m.
group(1)); }
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS51dGlsLnJlZ2V4Lio7CgpjbGFzcyBNYWluCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCVN0cmluZyBzID0gIklucHV0IG9uZSBJbnB1dCBUd28gSW5wdXQgVGhyZWUiOwogICAgICAgICAgICAgICAgUGF0dGVybiBwYXQgPSBQYXR0ZXJuLmNvbXBpbGUoIklucHV0KC4qPykoPz1JbnB1dHwkKSIpOwogICAgICAgICAgICAgICAgTWF0Y2hlciBtID0gcGF0Lm1hdGNoZXIocyk7CgogICAgICAgICAgICAgICAgd2hpbGUgKG0uZmluZCgpKSB7CgogICAgICAgICAgICAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKG0uZ3JvdXAoMSkpOwogICAgICAgICAgICAgICAgfQoJfQp9