n = int(eval(input()))

points = [tuple(map(int, input().split())) for _ in range(n)]

result = 0

px, py = points[0]

while points:

    x, y = points.pop()

    result += x * py - px * y

    px, py = x, y

print((abs(result) / 2))
n = int(eval(input()))

points = [complex(*list(map(int, input().split()))) for _ in range(n)]

result, prev = 0, points[0]

while points:

    point = points.pop()

    result += point.real * prev.imag - prev.real * point.imag

    prev = point

print((abs(result) / 2))
n = int(eval(input()))
points = [tuple(map(int, input().split())) for _ in range(n)]
result = 0
px, py = points[0]
while points:
    x, y = points.pop()
    result += x * py - px * y
    px, py = x, y
print((abs(result) / 2))

n = int(eval(input()))
points = [complex(*list(map(int, input().split()))) for _ in range(n)]
result, prev = 0, points[0]
while points:
    point = points.pop()
    result += point.real * prev.imag - prev.real * point.imag
    prev = point
print((abs(result) / 2))

-points = [tuple(map(int, input().split())) for _ in range(n)] -result = 0 -px, py = points[0] +points = [complex(*list(map(int, input().split()))) for _ in range(n)] +result, prev = 0, points[0] -    x, y = points.pop() -    result += x * py - px * y -    px, py = x, y +    point = points.pop() +    result += point.real * prev.imag - prev.real * point.imag +    prev = point