fun main(args: Array<String>) {
    readLine()?.toInt()?.let {
        val list = mutableListOf<String>()
        repeat(it) {
            readLine()?.let {
                list.add(it)
            }
        }
        val ac = list.filter { it == "AC" }.count()
        val wa = list.filter { it == "WA" }.count()
        val tle = list.filter { it == "TLE" }.count()
        val re = list.filter { it == "RE" }.count()
        println("AC x $ac")
        println("WA x $wa")
        println("TLE x $tle")
        println("RE x $re")
    }
}