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