'use strict'

function main(input) {
  input = input.split(' ').sort().reverse()
//   console.log(input)

  const ans = eval( input[0]+input[1] +'+'+ input[2] )
  console.log(ans)
}
main(require("fs").readFileSync("/dev/stdin", "utf8"));