function Main(arg) {
    arg = arg.trim().split(' ').sort();
    a = parseInt(arg[0], 10);
    bc = parseInt(arg[2] + arg[1], 10);
    
    console.log(a + bc)
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
