open System

[<EntryPoint>]
let main argv = 
    let a = Console.ReadLine() |> int
    let b = Console.ReadLine() |> int
    let h = Console.ReadLine() |> int
    Console.WriteLine ((a + b) * h / 2 )
    0
