import java.util.*;
import java.lang.*;
import java.util.*;
import java.util.regex.*;
class Main
{
private static final Pattern pattern = Pattern.compile("^((.+)_[^_]+)_([^_]+)$");
public static List
<String
> split
(String input
) { final Matcher matcher = pattern.matcher(input);
if (!matcher.matches()) {
return null;
}
return Arrays.
asList(matcher.
group(1), matcher.
group(2), matcher.
group(3)); }
public static void main
(String[] args
) {
System.
out.
println(split
("S1_T1_VIEW")); System.
out.
println(split
("S1_T1_C1_DELETE")); }
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLnV0aWwuKjsKaW1wb3J0IGphdmEudXRpbC5yZWdleC4qOwoKY2xhc3MgTWFpbgp7CiAgICBwcml2YXRlIHN0YXRpYyBmaW5hbCBQYXR0ZXJuIHBhdHRlcm4gPSBQYXR0ZXJuLmNvbXBpbGUoIl4oKC4rKV9bXl9dKylfKFteX10rKSQiKTsKICAgIAogICAgcHVibGljIHN0YXRpYyBMaXN0PFN0cmluZz4gc3BsaXQoU3RyaW5nIGlucHV0KSB7CiAgICAgICAgZmluYWwgTWF0Y2hlciBtYXRjaGVyID0gcGF0dGVybi5tYXRjaGVyKGlucHV0KTsKICAgICAgICBpZiAoIW1hdGNoZXIubWF0Y2hlcygpKSB7CiAgICAgICAgICAgIHJldHVybiBudWxsOwogICAgICAgIH0KICAgICAgICByZXR1cm4gQXJyYXlzLmFzTGlzdChtYXRjaGVyLmdyb3VwKDEpLCBtYXRjaGVyLmdyb3VwKDIpLCBtYXRjaGVyLmdyb3VwKDMpKTsKICAgIH0KICAgIAoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpCgl7CiAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKHNwbGl0KCJTMV9UMV9WSUVXIikpOwogICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbihzcGxpdCgiUzFfVDFfQzFfREVMRVRFIikpOwoJfQp9