a,b,c=list(map(int,input().split()))

if(a>=b):

    if(a>=c):

        print(((a*10)+b+c))

    else:

        print(((c*10)+a+b))

elif (b>=c):

    print((b * 10 + a + c))
a,b,c=sorted(map(int,input().split()))

print((c*10+a+b))
a, b, c = list(map(int, input().split()))
if a >= b:
    if a >= c:
        print(((a * 10) + b + c))
    else:
        print(((c * 10) + a + b))
elif b >= c:
    print((b * 10 + a + c))

a, b, c = sorted(map(int, input().split()))
print((c * 10 + a + b))

-a, b, c = list(map(int, input().split())) -if a >= b: -    if a >= c: -        print(((a * 10) + b + c)) -    else: -        print(((c * 10) + a + b)) -elif b >= c: -    print((b * 10 + a + c)) +a, b, c = sorted(map(int, input().split())) +print((c * 10 + a + b))