function Main(input) {
  input = input.trim()
 input=input.split(" ").map(Number);
  function compareFunc(a, b) {
  return a - b;
}
 
var num = [5, 3, 10, 6, 55];
 input = input.sort(compareFunc);
  console.log(input[2]*10+input[1]+input[0])
}Main(require("fs").readFileSync("/dev/stdin", "utf8"));