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

P=[]

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

P+=[P[0]]

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

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

P=[]

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

P+=[P[0]]

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

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

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

-x = list(range(int(eval(input())))) +x = list(range(int(eval(input())) - 1, -1, -1)) -for _ in reversed(x): +for _ in x: