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