
fun main(args: Array<String>) {
    val number = readLine()!!

    val StrToNum = hashMapOf("hon" to "24579", "pon" to "0168", "bon" to "3")

    fun matchDigit(num: Char, strMap: HashMap<String, String>): String = strMap.filter { it.value.contains(num) }.keys.first()

    val matchedKey = matchDigit(number.last(), StrToNum)
    println(matchedKey)
}
