x = input() y = x.split(',') z = list(map(int, y)) s = (z[0]+z[1])*z[2]*1/2 print(f'{s:.2f}')