A = list(map(int, input().split(","))) u, b, h = A ans = (u + b) * h / 2 print(f"{ans:.2f}")