"use strict";
function Main(input) {
    let Nums = input.split(/\s/).map((v) => v - 0);
    Nums.sort((a, b) => b - a);
    let max = Nums[0] * 10 + Nums[1] + Nums[2];
    console.log(max);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
