import java.util.*;
import java.util.regex.*;
import java.lang.*;
class Main
{
{
Pattern p = Pattern.compile("[,. ]+");
long start
= System.
currentTimeMillis();
for (int i=0; i<300000; i++)
{
String a
= p.
matcher(" 54,303,14311.34320 320,3254 ").
replaceAll(""); }
long end
= System.
currentTimeMillis();
System.
out.
println(end
-start
);
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS51dGlsLnJlZ2V4Lio7CmltcG9ydCBqYXZhLmxhbmcuKjsKCmNsYXNzIE1haW4KewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJUGF0dGVybiBwID0gUGF0dGVybi5jb21waWxlKCJbLC4gXSsiKTsKCQlsb25nIHN0YXJ0ID0gU3lzdGVtLmN1cnJlbnRUaW1lTWlsbGlzKCk7CgkJCgkJZm9yIChpbnQgaT0wOyBpPDMwMDAwMDsgaSsrKQoJCXsKCQkJU3RyaW5nIGEgPSBwLm1hdGNoZXIoIiAgNTQsMzAzLDE0MzExLjM0MzIwICAzMjAsMzI1NCAgICIpLnJlcGxhY2VBbGwoIiIpOwoJCX0KCQkKCQlsb25nIGVuZCA9IFN5c3RlbS5jdXJyZW50VGltZU1pbGxpcygpOwoJCQoJCVN5c3RlbS5vdXQucHJpbnRsbihlbmQtc3RhcnQpOwoJCQoJfQp9