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