u, b, h = map(int, input().split(',')) print((u+b)*0.5*h)