x1 = float(input())
y1 = float(input())
x2 = float(input())
y2 = float(input())
width = max(x1, x2) - min(x1, x2)
height = max(y1, y2) - min(y1, y2)
print(width * height)
print(2 * (width + height))

6c9e0c228842796743bdc4b76dbb77d6452a05bb
<mask token>

<mask token>
print(width * height)
print(2 * (width + height))

x1 = float(input())
y1 = float(input())
x2 = float(input())
y2 = float(input())
width = max(x1, x2) - min(x1, x2)
height = max(y1, y2) - min(y1, y2)
print(width * height)
print(2 * (width + height))
