import scala.io.{StdIn => in}

object Main extends App {
  val abc = in.readLine.split(" ").map(_.toInt).sorted(Ordering[Int].reverse)
  val ans = (abc.take(2).mkString).toInt + abc.last
  println(ans)
}