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

    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'));
