import java.util.Scanner

fun main(args:Array<String>){
    val sc=Scanner(System.`in`)

    var a=sc.nextInt()
    var b=sc.nextInt()
    var c=sc.nextInt()
    var t:Int

    if (a<=b){
        t=a
        a=b
        b=t
    }
    if (a<=c){
        t=a
        a=c
        c=t
    }
    if (b<=c){
        t=b
        b=c
        c=t
    }

    println(a*10+b+c)
}