let () =
	Scanf.scanf "%d %d %d\n"
    (fun a b c -> 
    if a > b then
    	if b > c then (a*10+b) + c
        else if a > c then (a*10+c) + b
        else (* c > a > b *) (c*10+a) + c
    else (* b >= a *)
    	if a > c then (b*10+a) + c
    	else if b > c then (b*10+c) + a
        else (c*10+b) + a)
    |> print_int