x, y, z, w = map(float, input().split()) print(0.5 * (x - y * z))