function main(arg) {
	arg = arg.split("\n")[0]
	arg = arg.split(" ").map((e) => Number(e))
	arg.sort((a,b) => {
		if (a > b) {
			return -1
		}
		return 1
	})
	console.log(arg[0]*10+arg[1] + arg[2])
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));