var input = require('fs').readFileSync('/dev/stdin', 'utf8');

var list = input.split(' ');

var sortedList = list.sort((a, b) => a - b);

console.log(Number(sortedList[2]) * 10 + Number(sortedList[1]) + Number(sortedList[0]));
