breadth=input("enter breath of trapezoid:\t")
length=input("enter length of trapezoid:\t")
height=int(input("enter height of trapezoid:\t"))
trapezoid=(int(breadth)+int(length))
sum=trapezoid
sum1=(int(trapezoid)*height)
sum2=(sum1/2)
print(sum2)