u, b, h = map(int, input().split(",")) print((u+b)*h/2)