let input = readLine()!.characters.split(" ").map{Double(String($0))!} let a = input[0] let b = input[1] let t = input[2] print(Int(0.5*a*t+0.5*b*t))