import java.util.*;
import java.lang.*;
import java.util.regex.*;
class Main
{
{
String input
= "Phone number (714) 321-2620 just texted about property 690 Warwick Avenue (679871)"; Matcher m = Pattern.compile("^Phone number (.*) just texted about property (.*)$").matcher(input);
if(m.find()) {
String first
= m.
group(1); // (714) 321-2620 String second
= m.
group(2); // 690 Warwick Avenue (679871) }
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLnV0aWwucmVnZXguKjsKCmNsYXNzIE1haW4KewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJU3RyaW5nIGlucHV0ID0gIlBob25lIG51bWJlciAoNzE0KSAzMjEtMjYyMCBqdXN0IHRleHRlZCBhYm91dCBwcm9wZXJ0eSA2OTAgV2Fyd2ljayBBdmVudWUgKDY3OTg3MSkiOwogICAgICAgIE1hdGNoZXIgbSA9IFBhdHRlcm4uY29tcGlsZSgiXlBob25lIG51bWJlciAoLiopIGp1c3QgdGV4dGVkIGFib3V0IHByb3BlcnR5ICguKikkIikubWF0Y2hlcihpbnB1dCk7CiAgICAgICAgaWYobS5maW5kKCkpIHsKICAgICAgICAgIFN0cmluZyBmaXJzdCA9IG0uZ3JvdXAoMSk7IC8vICg3MTQpIDMyMS0yNjIwCiAgICAgICAgICBTdHJpbmcgc2Vjb25kID0gbS5ncm91cCgyKTsgLy8gNjkwIFdhcndpY2sgQXZlbnVlICg2Nzk4NzEpCiAgICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4oZmlyc3QpOwogICAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKHNlY29uZCk7CiAgICAgICAgfQoJfQp9