'use strict';

function main(arg) {
    let temp = arg.split(" ").map(n=>parseInt(n)).sort((a,b) => b-a);
    let big  = (String(temp[0]) + String(temp[1]));

    console.log( parseInt(big) + temp[2]);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));