let _ =
	let a, b, c = Scanf.scanf "%d %d %d\n" (fun a b c -> a, b, c) in
    let ls = List.sort (fun x y -> compare y x) [a; b; c] in
    (List.nth ls 0) * 10 + (List.nth ls 1) + (List.nth ls 2)
    |> print_int