var main = function(input) {

var array =input.split(' ').map(x=>parseInt(x));
	array=array.sort();
	array=array.reverse();
var sum=array[0]*10+array[1]+array[2];
  console.log(sum)
    return 0; 
}

main(require("fs").readFileSync("/dev/stdin", "utf8").trim());