/* package whatever; // don't place package name! */
import java.util.*;
import java.util.regex.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
Pattern p = Pattern.compile("(.*)_(0?\\d|1[0-7])\\.png");
for (int i = 0 ; i != 10 ; i++) {
String s
= "hello_0"+i
+".png"; Matcher m = p.matcher(s);
System.
out.
println(s
+":"+m.
find()); }
for (int i = 0 ; i != 20 ; i++) {
Matcher m = p.matcher(s);
System.
out.
println(s
+":"+m.
find()); }
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS51dGlsLnJlZ2V4Lio7CmltcG9ydCBqYXZhLmxhbmcuKjsKaW1wb3J0IGphdmEuaW8uKjsKCi8qIE5hbWUgb2YgdGhlIGNsYXNzIGhhcyB0byBiZSAiTWFpbiIgb25seSBpZiB0aGUgY2xhc3MgaXMgcHVibGljLiAqLwpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJUGF0dGVybiBwID0gUGF0dGVybi5jb21waWxlKCIoLiopXygwP1xcZHwxWzAtN10pXFwucG5nIik7CgkJZm9yIChpbnQgaSA9IDAgOyBpICE9IDEwIDsgaSsrKSB7CgkJCVN0cmluZyBzID0gImhlbGxvXzAiK2krIi5wbmciOwoJCQlNYXRjaGVyIG0gPSBwLm1hdGNoZXIocyk7CgkJCVN5c3RlbS5vdXQucHJpbnRsbihzKyI6IittLmZpbmQoKSk7CgkJfQoJCWZvciAoaW50IGkgPSAwIDsgaSAhPSAyMCA7IGkrKykgewoJCQlTdHJpbmcgcyA9ICJoZWxsb18iK2krIi5wbmciOwoJCQlNYXRjaGVyIG0gPSBwLm1hdGNoZXIocyk7CgkJCVN5c3RlbS5vdXQucHJpbnRsbihzKyI6IittLmZpbmQoKSk7CgkJfQoJfQp9