function main(input) {
  const args = input.split(' ').map(n => parseInt(n, 10));
  args.sort((a, b) => {
    return b - a;
  });
  
  console.log(args[0] * 10 + args[1] + args[2]);
}

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