package main import ( "bufio" "os" "strings" "fmt" ) var sc = bufio.NewScanner(os.Stdin) func read() string { sc.Scan() return sc.Text() } func main(){ var s string = read() var YEAH = []string{"Y", "E", "A", "H", "!"} for i := 0; i < len(YEAH); i++ { var cnt int = strings.Count(s, YEAH[i]) if i != (len(YEAH) - 1) { fmt.Print(cnt, " ") } else { fmt.Println(cnt) } } }