import java.util.*;
import java.util.regex.*;
import java.lang.*;
class Main
{
{
String timeRegex
= "([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])(?:\\.([0-9]{1,3}))?"; Pattern pattern = Pattern.compile(timeRegex);
Matcher matcher = pattern.matcher(time);
if(matcher.matches()) {
String hours
= matcher.
group(1); String minutes
= matcher.
group(2); String seconds
= matcher.
group(3); String miliSeconds
= matcher.
group(4); System.
out.
println(hours
+ ", " + minutes
+ ", " + seconds
+ ", " + miliSeconds
); }
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS51dGlsLnJlZ2V4Lio7CmltcG9ydCBqYXZhLmxhbmcuKjsKCmNsYXNzIE1haW4KewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJU3RyaW5nIHRpbWUgPSAiMTQ6MzU6NTkuOTkiOwoJCVN0cmluZyB0aW1lUmVnZXggPSAiKFswMV1bMC05XXwyWzAtM10pOihbMC01XVswLTldKTooWzAtNV1bMC05XSkoPzpcXC4oWzAtOV17MSwzfSkpPyI7CgkJUGF0dGVybiBwYXR0ZXJuID0gUGF0dGVybi5jb21waWxlKHRpbWVSZWdleCk7CgkJTWF0Y2hlciBtYXRjaGVyID0gcGF0dGVybi5tYXRjaGVyKHRpbWUpOwoJCWlmKG1hdGNoZXIubWF0Y2hlcygpKSB7CgkJCVN0cmluZyBob3VycyA9IG1hdGNoZXIuZ3JvdXAoMSk7CgkJCVN0cmluZyBtaW51dGVzID0gbWF0Y2hlci5ncm91cCgyKTsKCQkJU3RyaW5nIHNlY29uZHMgPSBtYXRjaGVyLmdyb3VwKDMpOwoJCQlTdHJpbmcgbWlsaVNlY29uZHMgPSBtYXRjaGVyLmdyb3VwKDQpOwoJCQlTeXN0ZW0ub3V0LnByaW50bG4oaG91cnMgKyAiLCAiICsgbWludXRlcyAgKyAiLCAiICsgc2Vjb25kcyArICIsICIgKyBtaWxpU2Vjb25kcyk7CgkJfQoJfSAKfQ==