import java.util.*;
import java.lang.*;
import java.util.regex.*;
class Main
{
public static void main
(String[] args
) {
List<String> characters=new ArrayList<String>();
Pattern pat = Pattern.compile("\\p{L}\\p{M}*");
Matcher matcher = pat.matcher(s);
while (matcher.find()) {
characters.add(matcher.group());
}
// Test if we have the right characters and length
System.
out.
println(characters
); System.
out.
println("String length: " + characters.
size());
}
}
aW1wb3J0IGphdmEudXRpbC4qOwogICAgaW1wb3J0IGphdmEubGFuZy4qOwogICAgaW1wb3J0IGphdmEudXRpbC5yZWdleC4qOwogICAgCiAgICBjbGFzcyBNYWluCiAgICB7CiAgICAgICAgcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpCiAgICAJewogICAgICAgICAgICBTdHJpbmcgcz0i4K6V4K+B4K6u4K6+4K6w4K+NIjsKICAgICAgICAgICAgTGlzdDxTdHJpbmc+IGNoYXJhY3RlcnM9bmV3IEFycmF5TGlzdDxTdHJpbmc+KCk7CiAgICAgICAgICAgIFBhdHRlcm4gcGF0ID0gUGF0dGVybi5jb21waWxlKCJcXHB7TH1cXHB7TX0qIik7CiAgICAgICAgICAgIE1hdGNoZXIgbWF0Y2hlciA9IHBhdC5tYXRjaGVyKHMpOwogICAgICAgICAgICB3aGlsZSAobWF0Y2hlci5maW5kKCkpIHsKICAgICAgICAgICAgICAgIGNoYXJhY3RlcnMuYWRkKG1hdGNoZXIuZ3JvdXAoKSk7ICAgICAgICAgICAgCiAgICAgICAgICAgIH0KCiAgICAgICAgICAgIC8vIFRlc3QgaWYgd2UgaGF2ZSB0aGUgcmlnaHQgY2hhcmFjdGVycyBhbmQgbGVuZ3RoCiAgICAgICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbihjaGFyYWN0ZXJzKTsKICAgICAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKCJTdHJpbmcgbGVuZ3RoOiAiICsgY2hhcmFjdGVycy5zaXplKCkpOwogICAgICAgICAgICAKICAgICAgICB9CiAgICB9