function main(input) {
    const A = parseInt(input.split(" ")[0], 10);
    const B = parseInt(input.split(" ")[1], 10);
    const C = parseInt(input.split(" ")[2], 10);

    if (A < B) [A, B] = [B, A];
    if (B < C) [B, C] = [C, B];
    if (A < B) [A, B] = [B, A];
    console.log(A * 10 + B + C);

}

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