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