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