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