'use strict'

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

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