import java.util.Scanner

fun main(args:Array<String>){
    val sc = Scanner(System.`in`);
    val a: Int = sc.nextInt()
    val b: Int = sc.nextInt()
    val c: Int = sc.nextInt()
    val list = listOf(a*10+b+c, b*10+a+c, c*10+a+b)
    println(list.max())
}