using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace template { class Program { static void Main(string[] args) { char[] hikaku = new char[] { 'Y', 'E', 'A', 'H', '!' }; string s = Console.ReadLine(); int[] ret = new int[5]; for (int i = 0; i < s.Length; i++) { ret[Array.IndexOf(hikaku, s[i])]++; } for (int i = 0; i < 4; i++) Console.Write(ret[i] + " "); Console.WriteLine(ret[4]); } } }