using System; public class Hello { public static void Main() { var a = new string[] { "Y", "E", "A", "H", "!" }; var b = new int[5]; var s = Console.ReadLine().Trim(); var sL = s.Length; for (int i = 0; i < 5; i++) b[i] = sL - s.Replace(a[i], "").Length; Console.WriteLine(string.Join(" ",b)); } }