import sys

def input(): return sys.stdin.readline().strip()



def resolve():

    l=list(input().split())

    l.sort(reverse=True)

    print((int(l[0]+l[1])+int(l[2])))

resolve()
import sys

def input(): return sys.stdin.readline().strip()



def resolve():

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

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

resolve()
import sys


def input():
    return sys.stdin.readline().strip()


def resolve():
    l = list(input().split())
    l.sort(reverse=True)
    print((int(l[0] + l[1]) + int(l[2])))


resolve()

import sys


def input():
    return sys.stdin.readline().strip()


def resolve():
    a, b, c = list(map(int, input().split()))
    print((max(a * 10 + b + c, b * 10 + a + c, c * 10 + a + b)))


resolve()

-    l = list(input().split()) -    l.sort(reverse=True) -    print((int(l[0] + l[1]) + int(l[2]))) +    a, b, c = list(map(int, input().split())) +    print((max(a * 10 + b + c, b * 10 + a + c, c * 10 + a + b)))