X, Y, Z, W = map(int, input().split()) area = (X - Y * Z) / 2.0 print("{0:.10f}".format(area))