import std.stdio;
import std.algorithm;
import std.conv;
import std.string;

void main()
{
	auto tokens = split(chomp(readln()));
	int[] abc;
	abc ~= to!int(tokens[0]);
	abc ~= to!int(tokens[1]);
	abc ~= to!int(tokens[2]);
	abc.sort();
	
	writeln(abc[2] * 10 + abc[0] + abc[1]);
	stdout.flush();
}