# ABC110A - Maximize the Formula

def main():
    # input
    numbers = list(map(int, input().split()))

    # compute
    numbers.sort()
    okozukai=numbers[2]*10 +numbers[1]+numbers[0]

    # output
    print(okozukai)

if __name__ == '__main__':
    main()

# ABC110A - Maximize the Formula

def main():
    # input
    numbers = list(map(int, input().split()))

    # compute
    numbers.sort()
    okozukai=numbers[2]*10 +numbers[1]+numbers[0]

    # output
    print(okozukai)

if __name__ == '__main__':
    main()

# ABC110A - Maximize the Formula # input # compute # output