object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val l = List.fill(3)(sc.nextInt)
//  val a, b, c = sc.nextInt

  val sorted = l.sorted
  val ans = sorted.last * 10 + sorted(1) + sorted(0)

  println(ans)
}