fun main(args: Array<String>) {
    abc110a()
}

fun abc110a() {
    val abc = readLine()!!.split(" ").map { it.toInt() }

    val answer = abc.sortedDescending().let { it[0] * 10 + it[1] + it[2] }

    println(answer)
}
