n = int(eval(input()))

list = list(map(int,input().split()))



product_list = [1]*n



for i in range(len(list)):

  for j in range(len(list)):

    if i != j :

      product_list[i] *= list[j]

  

product_sum = 0

for i in range(len(list)):

  product_sum += product_list[i]

  

total_product = product_list[0] * list[0]



print(( total_product / product_sum))
n = int(eval(input()))

list = list(map(int,input().split()))



div_list = [0] * n



for i in range(len(list)):

  div_list[i] = 1 / list[i]

  

sum = 0

for i in range(len(list)):

  sum += div_list[i]

  

print(( 1 / sum ))
n = int(eval(input()))
list = list(map(int, input().split()))
product_list = [1] * n
for i in range(len(list)):
    for j in range(len(list)):
        if i != j:
            product_list[i] *= list[j]
product_sum = 0
for i in range(len(list)):
    product_sum += product_list[i]
total_product = product_list[0] * list[0]
print((total_product / product_sum))

n = int(eval(input()))
list = list(map(int, input().split()))
div_list = [0] * n
for i in range(len(list)):
    div_list[i] = 1 / list[i]
sum = 0
for i in range(len(list)):
    sum += div_list[i]
print((1 / sum))

-product_list = [1] * n +div_list = [0] * n -    for j in range(len(list)): -        if i != j: -            product_list[i] *= list[j] -product_sum = 0 +    div_list[i] = 1 / list[i] +sum = 0 -    product_sum += product_list[i] -total_product = product_list[0] * list[0] -print((total_product / product_sum)) +    sum += div_list[i] +print((1 / sum))