'use strict'

const main = (it) => {
  const a = parseInt(it.next().value);
  const b = parseInt(it.next().value);
  const c = parseInt(it.next().value);
  const abc = [a, b, c];
  abc.sort();
  console.log(abc[2] * 10 + abc[0] + abc[1]);
}

function* read() {
  const input = require('fs').readFileSync('/dev/stdin', 'utf8');
  for (const token of input.trim().split(/\s+/)) {
    yield token;
  }
}

main(read());