using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Text; using System.Text.RegularExpressions; using System.Linq; using System.IO; class Program { static void Main(string[] args) { var s = Console.ReadLine(); string YEAH = "YEAH!"; var map = new Dictionary(); foreach(var c in YEAH) { map[c] = 0; } foreach (var c in s) { map[c]++; } Console.WriteLine(string.Join(" ", map.Select(p => p.Value))); } }