import java.util.* fun inputHeight(heightMap: MutableMap){ var input = Scanner(System. `in`) heightMap["A"] = input.nextInt() heightMap["B"] = input.nextInt() heightMap["C"] = input.nextInt() sort(heightMap) } fun sort(heightMap: MutableMap){ var mapKey = heightMap.toList().sortedBy{ (_, value) -> -value }.toMap() mapKey.forEach{ println(it.key) } } fun main(args: Array){ var heightMap: MutableMap = mutableMapOf() inputHeight(heightMap) }