let ans = Scanf.sscanf (read_line ()) "%s %s %s" (fun a b c ->
  [
    int_of_string (a ^ b) + (int_of_string c); 
    int_of_string (a ^ c) + (int_of_string b);
    int_of_string (b ^ a) + (int_of_string c);
    int_of_string (b ^ c) + (int_of_string a);
    int_of_string (c ^ a) + (int_of_string b);
    int_of_string (c ^ b) + (int_of_string a);
  ]
)
let _ = print_endline (string_of_int (List.hd (List.rev (List.sort compare ans))))
