local read = setmetatable({}, {__index = function(t, k) return function() local a = {} for i=1,#k do table.insert(a, string.sub(k, i, i)) end return io.read(table.unpack(a)) end end})
local A, B, C = read.nnn()
local m = math.max(A,B,C)
local s = A+B+C
s = s - m + m*10
print(s)
