import std.stdio, std.algorithm, std.string, std.conv, std.array, std.range, std.math;
T Read(T)() { return readln.chomp.to!(T); }
T[] Reads(T)() { return readln.split.to!(T[]); }
alias read = Read!(int);
alias reads = Reads!(int);

void main() {
    int[] a = reads;
    a.sort();
    writeln(a[0] + 10 * a[2] + a[1]);
}
