import java.util.*

fun main(args: Array<String>) {
    Scanner(System.`in`).use { sc ->
        val a = sc.nextInt()
        val b = sc.nextInt()
        val c = sc.nextInt()
        val list = listOf(a, b, c).sorted().toList()
        println(list[0] + list[1] + list[2] * 10)
    }
}
