X, Y, Z, W = map(int, input().split()) print((X - Z * Y) / 2)