/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
import java.util.regex.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
String pattern
= "\\b\\d{3}\\b"; String str
= "232,60,121,600,1980"; Pattern r = Pattern.compile(pattern);
Matcher m = r.matcher(str);
while (m.find()) {
System.
out.
println(m.
group()); }
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CmltcG9ydCBqYXZhLnV0aWwucmVnZXguKjsKLyogTmFtZSBvZiB0aGUgY2xhc3MgaGFzIHRvIGJlICJNYWluIiBvbmx5IGlmIHRoZSBjbGFzcyBpcyBwdWJsaWMuICovCmNsYXNzIElkZW9uZQp7CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgdGhyb3dzIGphdmEubGFuZy5FeGNlcHRpb24KCXsKCQlTdHJpbmcgcGF0dGVybiA9ICJcXGJcXGR7M31cXGIiOwogICAgICAgIFN0cmluZyBzdHIgPSAiMjMyLDYwLDEyMSw2MDAsMTk4MCI7CiAgICAgICAgUGF0dGVybiByID0gUGF0dGVybi5jb21waWxlKHBhdHRlcm4pOwogICAgICAgIE1hdGNoZXIgbSA9IHIubWF0Y2hlcihzdHIpOwoKICAgICAgICB3aGlsZSAobS5maW5kKCkpIHsKICAgICAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKG0uZ3JvdXAoKSk7CiAgICAgICAgfQoJfQp9