Time limit
2s
Memory limit
128 MB
Jimin likes painting. Jimin has a rectangular sheet of paper with width W and height H, and will fold and paint it in the following order.
The figures below show the case W = 5, H = 6, f = 2, c = 2, (x1, y1) = (1, 1), and (x2, y2) = (3, 2).






Given W, H, f, c, x1, y1, x2, and y2, find the area that is not painted after the paper is unfolded.
The first line contains eight integers W, H, f, c, x1, y1, x2, and y2 separated by spaces.
Print the area that is not painted.