num = list(input().split())
num.sort(reverse=True)
print(int(''.join(num)[:2]) + int(''.join(num)[2]))

79cea12f57d74c31275d82453df35dec8f0f6e1b
<mask token>

<mask token>
num.sort(reverse=True)
print(int(''.join(num)[:2]) + int(''.join(num)[2]))

num = list(input().split())
num.sort(reverse=True)
print(int(''.join(num)[:2]) + int(''.join(num)[2]))
