program main
implicit None
integer::a,b,c,d

read *,a,b,c

d = a*10+b+c
if (d < b*10 + a + c)then
	d = b*10 + a + c
endif

if (d < c*10 + a + b)then
	d = c*10 + a + b
endif

print 101,d

101 format(i0)
end program main