using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
public class Test
{
public static void Main()
{
var s = "There are many kids in the playground. It's about 1 23 45 5;中文等等";
var pattern = @"([0-9])|([a-zA-Z])|([\u4e00-\u9fa5])";
var ms = Regex.Matches(s, pattern).Cast<Match>();
var ascii_digit_cnt = ms.Select(x => x.Groups[1].Value).Where(n => !string.IsNullOrEmpty(n)).Count();
var ascii_letter_cnt = ms.Select(x => x.Groups[2].Value).Where(n => !string.IsNullOrEmpty(n)).Count();
var han_cnt = ms.Select(x => x.Groups[3].Value).Where(n => !string.IsNullOrEmpty(n)).Count();
Console.WriteLine($"{ascii_digit_cnt} : {ascii_letter_cnt} : {han_cnt}");
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uQ29sbGVjdGlvbnMuR2VuZXJpYzsKdXNpbmcgU3lzdGVtLklPOwp1c2luZyBTeXN0ZW0uTGlucTsKdXNpbmcgU3lzdGVtLlRleHQuUmVndWxhckV4cHJlc3Npb25zOwoKcHVibGljIGNsYXNzIFRlc3QKewoJcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKQoJewogICAgCXZhciBzID0gIlRoZXJlIGFyZSBtYW55IGtpZHMgaW4gdGhlIHBsYXlncm91bmQuIEl0J3MgYWJvdXQgMSAyMyAgNDUgNTvkuK3mlofnrYnnrYkiOwogICAgCXZhciBwYXR0ZXJuID0gQCIoWzAtOV0pfChbYS16QS1aXSl8KFtcdTRlMDAtXHU5ZmE1XSkiOwogICAgCXZhciBtcyA9IFJlZ2V4Lk1hdGNoZXMocywgcGF0dGVybikuQ2FzdDxNYXRjaD4oKTsKICAgIAl2YXIgYXNjaWlfZGlnaXRfY250ID0gbXMuU2VsZWN0KHggPT4geC5Hcm91cHNbMV0uVmFsdWUpLldoZXJlKG4gPT4gIXN0cmluZy5Jc051bGxPckVtcHR5KG4pKS5Db3VudCgpOwogICAgCXZhciBhc2NpaV9sZXR0ZXJfY250ID0gbXMuU2VsZWN0KHggPT4geC5Hcm91cHNbMl0uVmFsdWUpLldoZXJlKG4gPT4gIXN0cmluZy5Jc051bGxPckVtcHR5KG4pKS5Db3VudCgpOwogICAgCXZhciBoYW5fY250ID0gbXMuU2VsZWN0KHggPT4geC5Hcm91cHNbM10uVmFsdWUpLldoZXJlKG4gPT4gIXN0cmluZy5Jc051bGxPckVtcHR5KG4pKS5Db3VudCgpOwogICAgICAgCUNvbnNvbGUuV3JpdGVMaW5lKCQie2FzY2lpX2RpZ2l0X2NudH0gOiB7YXNjaWlfbGV0dGVyX2NudH0gOiB7aGFuX2NudH0iKTsKCX0KfQ==