function Main(input){
  var n = input.split(" ");
  for(i=0;i<=2;i++){
    n[i] = parseInt(n[i],10);
  }
  var ns =n.sort(function(a,b){
    return a - b;
  });
  var mix = [];
  mix[0] = n.pop();
  mix[1] = n.pop();
  var answer = ns[0] + parseInt(mix.join(""),10);
  console.log(answer);
}
    Main(require('fs').readFileSync('/dev/stdin','utf8'));