open Batteries
open Printf
let () =
  let a,b,c = Scanf.scanf "%d %d %d " (fun a b c -> a,b,c) in

  let ans = 
    let (l, _) = List.sort compare [a;b;c] |>
                 List.split_nth 2 in
    List.fold_left (+) 0 l
  in

  Printf.printf "%d\n" ans
