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