[<AutoOpen>]
module Program

open System

let read f = stdin.ReadLine() |> f
let reads f = stdin.ReadLine().Split() |> Array.map f

[<EntryPoint>]
let main argv =
    let xs = reads int
    Array.sort xs
    |> fun x -> x.[0] + x.[1]
    |> printfn "%i"
    0