let a = stdin.ReadLine().Split " " |> Array.map int a |> Array.min |> printfn "%d"