const main = input => {
  const cards = input.trim().split(' ')
  cards.sort((a, b) => b - a)
  console.log(parseInt(cards[0] + cards[1]) + parseInt(cards[2]))
}
// 標準入力
main(require("fs").readFileSync("/dev/stdin", "utf8"));
