fun main(args: Array<String>) {
    val input: List<Int> = readLine()!!.split(" ").map{it.toInt()}
    val a: Int = input[0]
    val b: Int = input[1]
    val c: Int = input[2]
    val answer:Int
    answer = if (a > b){
        if (a > c){
            a * 10 + b + c
        } else{
            c * 10 + b + a
        }
    }else if (b > c){
        b * 10 + a + c
    }else{
        c * 10 + a + b
    }
    print(answer)
    return
}
