function Main(input){
	function compareFunc(a, b) {
	  return a - b;
	}
    //console.log(input);
	input = input.trim().split(' ').sort();
	input.sort(compareFunc);
    var bc =parseInt(input[2]+input[1],10);
    var a = parseInt(input[0],10)
    console.log(bc+a);
}

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