# Read the input values and split them into integers u, b, h = map(int, input().split(',')) # Calculate the area using the formula (u + b) * h / 2 area = (u + b) * h / 2 # Print the result formatted to two decimal places print("{0:.2f}".format(area))