import std.stdio, std.range, std.conv, std.string, std.array, std.functional;
import std.algorithm.comparison, std.algorithm.iteration, std.algorithm.mutation, std.algorithm.searching, std.algorithm.setops, std.algorithm.sorting;
import std.container.binaryheap;

void main()
{
    auto list = readln().strip.split.to!(long[]);
    list.sort!"a>b";
    writeln(list[0] * 10 + list[1..$].sum);
}