local a = io.read("*n")
local b = io.read("*n")
local c = io.read("*n")

local d = math.max(a, b)
local e = 0
local f = 0
if d == a then
    e = math.max(b, c)
    f = math.min(b, c)
else
     e = math.max(a, c)
    f = math.min(a, c)
end
local aa = math.max(d, e)
local bb = math.min(d, e)
local sum = aa*10 + bb + f
print(sum)

