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; var sum = 0; for (int i = 0; i < 4; i++) { b[i] = sL - s.Replace(a[i], "").Length; sum += b[i]; } b[4] = sL - sum; Console.WriteLine(string.Join(" ",b)); } }