x=list(range(int(eval(input()))))

P=[]

for _ in x:P+=[[int(i) for i in input().split()]]

_=0

P+=[P[0]]

for j in x:_+=P[j][0]*P[j+1][1]-P[j][1]*P[j+1][0]

print((_*0.5))
x=list(range(int(eval(input()))))

P=[]

Q=[]

for _ in x:P+=[[int(i) for i in input().split()]]

P+=[P[0]]

for j in x:Q+=[P[j][0]*P[j+1][1]-P[j][1]*P[j+1][0]]

print((sum(Q)*0.5))
x = list(range(int(eval(input()))))
P = []
for _ in x:
    P += [[int(i) for i in input().split()]]
_ = 0
P += [P[0]]
for j in x:
    _ += P[j][0] * P[j + 1][1] - P[j][1] * P[j + 1][0]
print((_ * 0.5))

x = list(range(int(eval(input()))))
P = []
Q = []
for _ in x:
    P += [[int(i) for i in input().split()]]
P += [P[0]]
for j in x:
    Q += [P[j][0] * P[j + 1][1] - P[j][1] * P[j + 1][0]]
print((sum(Q) * 0.5))

+Q = [] -_ = 0 -    _ += P[j][0] * P[j + 1][1] - P[j][1] * P[j + 1][0] -print((_ * 0.5)) +    Q += [P[j][0] * P[j + 1][1] - P[j][1] * P[j + 1][0]] +print((sum(Q) * 0.5))