import java.util.*;
import java.lang.*;
import java.util.regex.Pattern;
import java.util.regex.Matcher;
class Main
{
{
Pattern pattern = Pattern.compile("(?:Active Phone Lines:|\\G)[\\s,]*([0-9]{4})");
String test
= "User Names: bob, jill, toni, tom"+ "Active Phone Lines: 1010, 2020, 3030, 4040, 5050, 6060, 7070"+
"Inactive Phone Lines: 1111, 2222, 3333, 4444, 5555";
Matcher matcher = pattern.matcher(test);
while (matcher.find()) {
System.
out.
println(matcher.
group(1)); }
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLnV0aWwucmVnZXguUGF0dGVybjsKaW1wb3J0IGphdmEudXRpbC5yZWdleC5NYXRjaGVyOwoKY2xhc3MgTWFpbgp7CiAgICAgICAgcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCiAgICAgICAgewoJCSAgIFBhdHRlcm4gcGF0dGVybiA9IFBhdHRlcm4uY29tcGlsZSgiKD86QWN0aXZlIFBob25lIExpbmVzOnxcXEcpW1xccyxdKihbMC05XXs0fSkiKTsKCQkgICBTdHJpbmcgdGVzdCA9ICJVc2VyIE5hbWVzOiBib2IsIGppbGwsIHRvbmksIHRvbSIrCiJBY3RpdmUgUGhvbmUgTGluZXM6IDEwMTAsIDIwMjAsIDMwMzAsIDQwNDAsIDUwNTAsIDYwNjAsIDcwNzAiKwoiSW5hY3RpdmUgUGhvbmUgTGluZXM6IDExMTEsIDIyMjIsIDMzMzMsIDQ0NDQsIDU1NTUiOwoJCSAgIE1hdGNoZXIgbWF0Y2hlciA9IHBhdHRlcm4ubWF0Y2hlcih0ZXN0KTsKCQkgICB3aGlsZSAobWF0Y2hlci5maW5kKCkpIHsKCQkgICAgICAgU3lzdGVtLm91dC5wcmludGxuKG1hdGNoZXIuZ3JvdXAoMSkpOwoJCSAgIH0KICAgICAgICB9Cn0=