x1, y1, x2, y2 = map(float, input().split()) print(abs((x1 - x2) * (y1 - y2)))