Problem:
 Score : 200 points    Problem Statement Given is a sequence of N integers A_1, \ldots, A_N .  Find the (multiplicative) inverse of the sum of the inverses of these numbers, \frac{1}{\frac{1}{A_1} + \ldots + \frac{1}{A_N}} .      Constraints  1 \leq N \leq 100  1 \leq A_i \leq 1000         Input Input is given from Standard Input in the following format:  N  A_1  A_2  \ldots  A_N       Output Print a decimal number (or an integer) representing the value of \frac{1}{\frac{1}{A_1} + \ldots + \frac{1}{A_N}} .  Your output will be judged correct when its absolute or relative error from the judge's output is at most 10^{-5} .        Sample Input 1 2
10 30      Sample Output 1 7.5  \frac{1}{\frac{1}{10} + \frac{1}{30}} = \frac{1}{\frac{4}{30}} = \frac{30}{4} = 7.5 .  Printing 7.50001 , 7.49999 , and so on will also be accepted.       Sample Input 2 3
200 200 200      Sample Output 2 66.66666666666667  \frac{1}{\frac{1}{200} + \frac{1}{200} + \frac{1}{200}} = \frac{1}{\frac{3}{200}} = \frac{200}{3} = 66.6666... .  Printing 6.66666e+1 and so on will also be accepted.       Sample Input 3 1
1000      Sample Output 3 1000  \frac{1}{\frac{1}{1000}} = 1000 .  Printing +1000.0 and so on will also be accepted.

Solution (Python):
import sys, os
import collections

MOD = 10 ** 9 + 7

def solve(input_stream):
  N = read_int(input_stream)
  numbers = read_ints(input_stream)
  ans = 1.0
  mother = 0
  for value in numbers:
    mother += 1.0/value
  
  return [str(ans/mother)]


def read_ints(input_stream):
  return [i for i in map(int, input_stream.readline().strip().split())]

def read_int(input_stream):
  return int(input_stream.readline().strip())


if __name__ == "__main__":
    outputs = solve(sys.stdin)
    for line in outputs:
      print(line)

Solution (Python):
n = int(input())
a = list(map(int, input().split()))

total = 0
for i in range(n):
    total += 1/a[i]

print(1/total)

Solution (Python):
_ = input()
A = [int(i) for i in input().split()]

d = sum([1.0 / a for a in A])
ans = 1.0 / d
print(ans)

Solution (Python):
N=int(input())
A=list(map(int,input().split()))

num=0
for i in A:
   num+=1/i
    
print(1/num)

Solution (Python):
_ = input()
b = 0
A = list(map(int,input().split()))
for a in A:
  b += (1/a)
print(1/b)

Solution (Python):
N = int(input())
A = list(map(int, input().split()))
 
ans = 0
 
for i in range(N):
    ans = ans + 1 / A[i]
 
ans = 1 / ans 
 
print(ans)

Solution (Python):
N = input()
A = list(map(float, input().split()))

print(1 / sum(1 / x for x in A))

Solution (Python):
N = int(input())
A = list(map(int, input().split()))

ans = 0

for i in range(N):
    ans = ans + 1 / A[i]

ans = 1 / ans 

print(ans)

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
for i in range(n) :
    a[i] = 1/a[i]
b = sum(a)
print(1/b)

Solution (Python):
import sys

if sys.platform =='ios':
	sys.stdin=open('Untitled.txt')
input = sys.stdin.readline
def MAP(): return [int(s) for s in input().split()]

N = int(input())
A = MAP()

souwa = 0
for a in A:
	souwa += 1/a

print(1/souwa)

Solution (Python):
N = int(input())
A = list(map(int,input().split()))
b = 0
for i in range(N):
    b += 1/A[i]

print(1/b)

Solution (Python):
N=int(input())
A=list(map(int,input().split()))

sum=0

for i in range(N):
    sum+=1/A[i]

print(1/sum)

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
fact = 1
for i in range(n):
  fact *= a[i]
bunbo = 0
for i in range(n):
  bunbo += fact // a[i]
print(fact/bunbo)

Solution (Python):
def inv(x):
    return 1 / x


n = int(input())
a = [int(x) for x in input().split()]

sum = 0
for i in range(n):
    sum += inv(a[i])

print(inv(sum))

Solution (Python):
N = int(input())
A_list = list(map(int,input().split()))

print(sum(list(map(lambda x : x**-1 , A_list)))**-1)

Solution (Python):
a=int(input())
b=list(map(int,input().split()))
c=0
for i in b:
    c+=1/i
print(1/c)

Solution (Python):
a=input()
s=input().split()

sum=0
for i in range(len(s)):
  sum=sum+1/int(s[i])

print(1/sum)

Solution (Python):
N = int(input())
A = list(map(int,input().split()))

a = 0
for i in A:
    a += 1/i

print(1/a)

Solution (Python):
N = int(input())
data = list(map(float,input().split()))
sum = 0

for i in range(N):
	sum = sum + 1/data[i]

ans = 1/sum
print(ans)

Solution (Python):
n = int(input())
*a, = map(int, input().split())
print(1/sum(map(lambda x: 1/x, a)))

Solution (Python):
N = int(input())
A = list(map(int, input().split()))
res = 0
for i in range(N):
    res += 1 / A[i]

print(1/res)

Solution (Python):
N = int(input())
i = list(map(int, input().split()))

rev_sum = 0
for x in i: 
  rev = 1/x
  rev_sum += rev
  ans = 1/rev_sum

print(float(ans))

Solution (Python):
N = int(input())
A = list(map(float, input().split()))
sum = 0

for x in range(0,N):
    sum+=1/A[x]

print(1/sum)

Solution (Python):
import sys

N = int(input())
A = list(map(float, list(input().split())))
sum = 0

for x in range(0,N):
    sum+=1/A[x]

print(1/sum)

Solution (Python):
n = int(input())
L = list(map(int, input().split()))
D = 0
for i in range(n):
  D += 1/L[i]
  
print(1/D)

Solution (Python):
N = int(input())
A = list(map(int, input().split()))
ans = 0
for i in range(N):
    ans += 1/A[i]
print(1/ans)

Solution (Python):
N = int(input())
A = list(map(int, input().split()))

Bunbo_sum = 0

for a in A:
    Bunbo_sum += (1/a)
    
print(1/Bunbo_sum)

Solution (Python):
import numpy as np
N = input()
A = np.array(input().split()).astype(int)
result = 0
for a in A:
    result += 1 / a
print(1 / result)

Solution (Python):
N = int(input())
A = list(input().split())
S = 0
for i in range(0,N):
  a = int(A[i])
  S = S + 1/a
K = 1/S
print(K)

Solution (Python):
N = int(input())
A = list(map(float, input().split()))

sum_of_rev = 0.0

for i in range(N):
    sum_of_rev += 1 / A[i]

print(1 / sum_of_rev)

Solution (Python):
import fractions
N=int(input())
A=list(map(int,input().split()))
x=0
ans=A[0]
for i in range(1,N):
  ans=ans*A[i]//fractions.gcd(ans,A[i])
for i in range(N):
  x=x+ans//A[i]
print(ans/x)

Solution (Python):
n = int(input())
a = list(map(int,input().split()))
s = 0

for i in range(n):
    s += 1/a[i]

print(1/s)

Solution (Python):
from fractions import Fraction

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

f = 0.0

for i in range(int(total)):
    f += 1/l[i]

print(1/f)

Solution (Python):
n=int(input())
a=list(map(int,input().split()))
print("{:.16g}".format((1/sum(1/x for x in a))))

Solution (Python):
n=int(input())
A=list(map(int,input().split()))
print(1/sum(1/A[i] for i in range(n)))

Solution (Python):
n = int(input())

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

ans = 0

for i in range(n):
	ans = ans + a[i]**-1
	
print(ans**-1)

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
x = 0
for i in range(n):
    x += 1 / a.pop()
print(1 / x)

Solution (Python):
n = int(input())
a = [int(i) for i in input().split()]
s = 0
for i in range(n):
    s += 1/a[i]
ans = 1/s
print(ans)

Solution (Python):
N = int(input())
A = list(map(int, input().split()))
ans = 0
for a in A:
    ans += 1/a
print(1/ans)

Solution (Python):
N = int(input())
A = list(map(int,input().split()))
ans = 0
for i in range(N):
    ans += 1/A[i]
print(1/ans)

Solution (Python):
n=int(input())
l=list(map(int, input().split()))
ans=[]
for i in range(n):
  ans.append(1/l[i])
print(1/sum(ans))

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
a_rev = [1/i for i in a]
print(1/sum(a_rev))

Solution (Python):
N = int(input())
A = list(map(int,input().split()))
R = 0.0
for i in range(N):
  R += A[i]**(-1)
print(1/R)

Solution (Python):
N = int(input())
A = list(map(int,input().split()))
R = 0.0
for i in range(N):
  R += A[i]**(-1)
print(1/R)

Solution (Python):
N = int(input())
A = list(map(int,input().split()))
inv = 0
for i in A:
  inv = inv + 1 / i
ans = 1 / inv
print(ans)

Solution (Python):
n=int(input())
a=[int(i) for i in input().split()]
rev=0
for i in a:
  rev+=1/i
print(1/rev)

Solution (Python):
n=int(input())
a=list(map(int,input().split()))
print(1/sum([1/i for i in a]))

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
inverse_ans = 0

for i in range(n):
  inverse_ans += 1 / a[i]
  
print(1 / inverse_ans)

Solution (Python):
n=int(input())
a=list(map(float,input().split()))

ans=0
for i in range(0,n):
    ans+=1/a[i]
print(1/ans)

Solution (Python):
n = int(input())
A = list(map(int, input().split()))

print('{:.16g}'.format(1 / sum(1 / x for x in A)))

Solution (Python):
n = int(input())
a = list(map(int,input().split()))
a = [1/a[i] for i in range(n)]
print(1/sum(a))

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
b = 0
for i in range(n):
  b += 1/a[i]
print(1/b)

Solution (Python):
n=int(input())
a=list(map(int, input().split()))
b=[]
for i in range(n):
    b.append(1/a[i])
c=sum(b)
print(1/c)

Solution (Python):
N = int(input())
A = list(map(int, input().split()))
under = 0
for i in range(N):
    under += 1 / A[i]
print(1 / under)

Solution (Python):
N=int(input())
A=list(map(int, input().split()))

prod = 1
for ii in range(N):
    prod *= A[ii]
sum = 0
for ii in range(N):
    sum += prod//A[ii]
print(float(prod)/float(sum))

Solution (Python):
N =int(input())
A = [int(x) for x in input().split()]
buf = 0
for i in range(N) :
    buf += (1/A[i])

print(1/buf)

Solution (Python):
N = int(input())
A = list(map(int, input().split()))

prod = 1
for a in A:
  prod = prod * a
  
divs = 0
for a in A:
  divs += prod // a
  
print(prod / divs)

Solution (Python):
n = int(input())

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

count=0

for i in range(n):
    count += (1/li[i])

print(1/count)

Solution (Python):
n=int(input())
a=list(map(int, input().split()))
sum=0
for i in range(n):
    sum+=1/a[i]
print(1/sum)

Solution (Python):
def rec(x):
  return 1/x

n=int(input())
a_list=list(map(int,input().split(" ")))
a_recsum = sum(map(rec,a_list))
print(rec(a_recsum))

Solution (Python):
N = int(input())
nums = list(map(int, input().split()))
print(1/sum(1/x for x in nums))

Solution (Python):
n=int(input())
a=list(map(int,input().split()))
b=0
for i in range(n):
    b+=1/a[i]

print(1/b)

Solution (Python):

n = int(input())
a = [int(s) for s in input().split()]

denominater = 0

for b in a:
    denominater += 1 / b

print(1 / denominater)

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
sum = 0
for i in range(n):
    sum += 1 / a[i]
print(1 / sum)

Solution (Python):
from fractions import Fraction
N = int(input())
A =list(map(int,input().split()))
A_list = []
for x in A:
    A_list.append(Fraction(1,x))
sum = Fraction(0)
for x in A_list:
    sum += x
result = 1/sum
result_f = float(result)
print(result_f)

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
for i in range(n):
    a[i] = 1/a[i]
print(1/sum(a))

Solution (Python):
N = int(input())
A = list(map(int, input().split()))
B = [0] * N
sum_B = 0
for i in range(N):
    B[i] = 1/A[i]
    sum_B += B[i]
print(1/sum_B)

Solution (Python):
N = int(input())
A = map(int,input().split())
sum = 0
for a in A:
    sum += 1/a
print(1/sum)

Solution (Python):
input()
a=list(map(int,input().split()))
res=0
for i in a:
    res+=1/i
print(1/res)

Solution (Python):

import sys

input = sys.stdin.readline


sys.setrecursionlimit(2147483647)
INF = float("inf")
IINF = 10 ** 18
MOD = 10 ** 9 + 7


def main():
    N = int(input())
    A = list(map(int, input().split()))

    a = 0.0
    for i in range(N):
        a += 1 / float(A[i])
    print(1.0/a)


if __name__ == '__main__':
    main()

Solution (Python):
N = int(input())
A = map(int, input().split())
print('{:.16g}'.format(1 / sum(1 / x for x in A)))

Solution (Python):
n=int(input())
A = [int(i) for i in input().split()]

lower=0
for a in A:
  lower += 1/a

print(1/lower)

Solution (Python):
n = int(input())
ai = list(map(int, input().split()))



ans = 0
for i in ai:
    ans=ans+1/i

print(1/ans)

Solution (Python):
N = int(input())
A = list(map(int,input().split(' ')))
lst = []
for i in range(N):
    lst.append(1/A[i])
print(1/sum(lst))

Solution (Python):
n=int(input())
a=list(map(int,input().split()))
s=0
for i in a:
  s+=1/i
print(1/s)

Solution (Python):
N = int(input())
A = [int(x) for x in input().split()]
answer = 0
for i in range(N):
  answer += 1/A[i]
print(1/answer)

Solution (Python):

import sys





from functools import reduce







def sum_inverses(a, b):
    return a + 1 / b

def main():
    n, *a = map(int, sys.stdin.read().split())

    ans = 1 / reduce(sum_inverses, a, 0)
    print(ans)

if __name__ == "__main__":
    main()

Solution (Python):
n = int(input())

a = list(map(int, input().split()))
sum = sum([1.0/i for i in a])

print("{}".format(1.0/sum))

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
sum = 0
for i in range(n):
  sum += 1/a[i]
  
print(1/sum)

Solution (Python):
_ = input();print(1/sum( 1/i for i in list(map(int, input().split()))))

Solution (Python):
_ = input();print(1/sum([ 1/i for i in list(map(int, input().split()))]))

Solution (Python):
n = int(input())
*a, = map(int, input().split())
ans = 0
for i in a:
    ans += 1/i
print(1/ans)

Solution (Python):
N = int(input())
A = list(map(int,input().split()))
S = 0
for i in range(0,len(A)):
    S += 1/A[i]
print(1/S)

Solution (Python):
N = int(input())
A = list(map(int,input().split()))
sum = 0

for i in range(N):
    sum += 1/A[i]


ans = 1/sum

print(ans)

Solution (Python):
def inpl():
    return list(map(int, input().split()))


def gcd(a, b):
    
    while b > 0:
        a, b = b, a % b

    return a


def lcm(a, b):
    
    return a * b // gcd(a, b)


N = int(input())
A = inpl()

c = A[0]
for a in A[1:]:
    c = lcm(c, a)

print(c / sum(c // a for a in A))

Solution (Python):
from collections import defaultdict,deque
import sys,heapq,bisect,math,itertools,string,queue,copy,time
import numpy as np
sys.setrecursionlimit(10**8)
INF = float('inf')
mod = 10**9+7
eps = 10**-7
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))
def inpl_str(): return list(sys.stdin.readline().split())

n = inp()
Alist = np.array(inpl())
print(1.0/((1.0/Alist).sum()))

Solution (Python):
N = int(input())
A = list(map(int , input().split()))

B = 0

for i in range(N):
    B += 1 / A[i]
    
print(1 / B)

Solution (Python):
from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache
import fractions
import sys
sys.setrecursionlimit(10000)
INF = float("inf")
YES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"
dy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]
dy8, dx8 = [0, -1, 0, 1, 1, -1, -1, 1], [1, 0, -1, 0, 1, 1, -1, -1]


def inside(y, x, H, W):
    return 0 <= y < H and 0 <= x < W


def ceil(a, b):
    return (a + b - 1) // b



def sum_of_arithmetic_progression(s, d, n):
    return n * (2 * s + (n - 1) * d) // 2



def gcd(a, b):
    if b == 0:
        return a
    return gcd(b, a % b)



def lcm(a, b):
    g = gcd(a, b)
    return a / g * b


def main():
    N = int(input())
    A = list(map(int, input().split()))

    ans = 0
    for i in range(N):
        ans += fractions.Fraction(1, A[i])

    print(float(fractions.Fraction(1, ans)))


if __name__ == '__main__':
    main()

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
ans = 0
for i in range(n):
    ans += 1 / a[i]
print(1 / ans)

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
cnt = 0

for i in range(n):
    cnt += 1 / a[i]

print(1/cnt)

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
ans = 0

for i in range(n):
    ans += 1 / a[i]

print(1 / ans)

Solution (Python):
n=int(input())
a=list(map(int,input().split()))
for i in range(0,n):
  a[i]=1/a[i]
print(1/sum(a))

Solution (Python):
import numpy as np
N=int(input())
A=np.array(list(map(int,input().split(" "))))
print(1/sum(1/A))

Solution (Python):
n=int(input())  
a=list(map(int, input().split()))
s = 0
for i in range(n):
    s = s + 1/a[i]
print(1/s)

Solution (Python):
n = int(input())
a_list = list(map(int,input().split()))
rev_list = []
for i in range(n):
    rev_list.append(1 / a_list[i])
print(1/sum(rev_list))

Solution (Python):
N=int(input())
A=list(map(int,input().split()))
ans = 0.0
for i in range(N):
  ans += 1.0 / A[i]
ans = 1.0 / ans
print(ans)

Solution (Python):
N=int(input())
A=list(map(int,input().split()))
ans=0
for x in range(len(A)):
    ans=ans+(1/A[x])
print((1/ans))

Solution (Python):
n = int(input())
a = map(int, input().split())


def solve():
    ans_tmp = 0
    for aa in a:
        ans_tmp = ans_tmp + 1 / aa

    return 1 / ans_tmp


print(solve())

Solution (Python):
n=int(input())
a=list(map(int,input().split()))
res=0
for i in range(n):
    res+=1/a[i]
print(1/res)

Solution (Python):
n=int(input())
a=list(map(int,input().split()))
aa=[]
for i in a:
    aa.append(1/i)
print(1/sum(aa))

Solution (Python):
n = int(input())
ls_a = list(map(int, input().split()))

d = float(0)

for i in range(n):
    d += 1/ls_a[i]

print(1/d)

Solution (Python):
N = int(input())
A = map(lambda x:1/int(x),input().split())
Ahat = 1/sum(A)
print(Ahat)

Solution (Python):
n = input()
numbers = list(map(int,input().split()))
rev_sum=0
ans = 0
for number in numbers:
    rev_sum += 1/number
ans = 1/rev_sum
print(ans)

Solution (Python):
n=int(input())
a=list(map(int,input().split()))
sum=0
for num in a:
  sum += 1/num
print(1/sum)

Solution (Python):
n = int(input())
a = list(map(int, input().split()))

wa = 0
for i in a:
    wa+=(1/i)

print(1/wa)

Solution (Python):
N = int(input())
A = input().split()
sum=0
for i in range(N):
  sum+=1/int(A[i])
print(1/sum)

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
print(1/sum(list(map(lambda x: 1/x, a))))

Solution (Python):
n = int(input())
a_s = list(map(int, input().split()))

res = 1 / sum([1 / a for a in a_s])
print(res)

Solution (Python):
N = int(input())
print("{:f}".format(1/sum([1/int(i) for i in input().split()])))

Solution (Python):
N = int(input())
A = [int(a) for a in input().split(" ")]

ans = 0
for i in A:
    ans += 1/i
    ans = round(ans,10)

ans = round(1/ans,10)
print(ans)

Solution (Python):
N = int(input())
A_list_str = list(input().split())
A_list = [int(x) for x in A_list_str]

B_list = []
for i in range(N):
    B_list.append(1/A_list[i])

print(1/sum(B_list))

Solution (Python):
import numpy as np
n = int(input())
a = np.array(list(map(int, input().split())))
print(1/((1/a).sum()))

Solution (Python):
N = int(input())
A = list(map(int, input().split()))

ans = 0
for i in A:
    ans += (1 / i)

ans = (1 / ans)

print(ans)

Solution (Python):
N = int(input())
sum = 0
A = map(int, input().split())
for a in A:
    sum += 1 / a

print(1 / sum)

Solution (Python):
n = int(input())
a = [int(i) for i in input().split()]
a_inv = [1/i for i in a]
ans = 1/sum(a_inv)
print(ans)

Solution (Python):
n = int(input().strip())
a = list(map(int, input().split()))
denom = sum(map(lambda x: (1 / x), a))

print(1 / denom)

Solution (Python):
n = int(input())
A = list(map(int, input().split()))

sumbunnsi = 0
i= 0
while i <= n-1:
      sumbunnsi= sumbunnsi + (1/A[i])
      i += 1

print(1/sumbunnsi)

Solution (Python):
N=int(input())
l=list(map(int,input().split()))
tmpl=[]
for num in l:
  tmpl.append(1/num)
tmp=0
for num in tmpl:
    tmp+=num
print(1/tmp)

Solution (Python):
N = int( input() )
A_list = list( map( int, input().split() ) )
s = float()
for i in A_list:
    s += float(1/i)
print( float( 1/s ) )

Solution (Python):
N = int(input())
A = list(map(int, input().split()))
ans = [1/a for a in A]
print(1/sum(ans))

Solution (Python):
N = int(input())
A = list(map(int, input().split()))

sum = 0
for i in range(N):
    sum += 1.0 / A[i]
print(1 / sum)

Solution (Python):
N = input()
A = list(map(int, input().split()))
ans = 0
for i in A:
    ans += 1 / i
print(1 / ans)

Solution (Python):
N = int(input())
A = list(map(int, input().split()))
cal = []
for i in range(N):
    cal.append(1 / A[i])
cal = 1 / sum(cal)
print(cal)

Solution (Python):
n = int(input())
a = list(map(int, input().split()))

ans = 0
for i in range(n):
  ans += 1/a[i]
  
print(1/ans)

Solution (Python):
n=int(input())
a = [1/int(i) for i in input().split()]
print(1/sum(a))

Solution (Python):
import numpy as np

N = int(input())
A = [int(i) for i in input().split()]




inv_A = [1/A[i] for i in range(len(A))]
sum_inv_A = np.sum(inv_A)
print(1/sum_inv_A)

Solution (Python):
n = int(input())
a = [1/int(i) for i in input().split()]
print(1/sum(a))

Solution (Python):
N = int(input())
A = list(map(int,input().split()))
Sum = 0
for a in A:
    Sum = Sum + 1/a
print(1/Sum)

Solution (Python):
N = int(input())
A = list(map(int, input().split()))
sum = 0
for i in range(len(A)):
  sum += 1/A[i]
print(1/sum)

Solution (Python):
import math

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

cnt=0
for i in A:
    cnt+=1/i

print(1/cnt)

Solution (Python):


def main():
    N = int(input())
    As =  [int(s) for s in input().split()]
    bunbo = 0
    for A in As:
        bunbo += 1/A
    print(1/bunbo)
        


if __name__ == "__main__":
    main()

Solution (Python):
n=int(input())
a=list(map(int, input().split()))

tmp=0
for ai in a:
    tmp+=1/ai
print(1/tmp)

Solution (Python):
N = input()
N = int(N)
A = input().split()

A = [int(a) for a in A]
sum_ = 0
for i in range(len(A)):
    sum_ += 1/A[i]
    
print(1/sum_)

Solution (Python):
N=int(input())
A = [1/int(a) for a in input().split()]
ans = 1/sum(A)
print(ans)

Solution (Python):
n=int(input())
a=[1/int(i) for i in input().split()]
ans=1/sum(a)
print(ans)

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
tmp = 0
for i in range(n):
    tmp += 1/a[i]
print(1/tmp)

Solution (Python):
n = int(input())
an = list(map(int, input().split()))
i=0
k=0
 
 

  
while n>i:
  k+=1/an[i]
  i+=1
  
print(1/k)

Solution (Python):
n = input()
an = list(map(int, input().split()))

sumA = 0

for a in an:
    sumA += 1/a
print(1/sumA)

Solution (Python):
N=int(input())
S=list(map(int,input().split(" ")))
c=0
for i in S:
    c+=1/i
print(1/c)

Solution (Python):
n = int(input())
a = list(map(int,input().split(" ")))
s = 0
for i in a:
    s += 1/i
print(1/s)

Solution (Python):
from fractions import Fraction

N = int(input())
A = list(map(int,input().split()))
a = []
b = 0

for i in A:
  a.append(Fraction(1, i))

for i in a:
  b += i
print(float(1 / b))

Solution (Python):
N = int(input())
A = list(map(int, input().split(" ")))
sum = 0
for i in range(N):
  sum += 1. / A[i]
print(1/sum)

Solution (Python):
N = int(input())
ans = 0
for A in map(int, input().split()):
	ans += 1 / A

ans = 1 / ans
print(ans)

Solution (Python):
n = int(input())
a = list(map(int, input().split()))

mother = 0

for i in range(n):
    mother = mother + 1 / a[i]

print(1/mother)

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
c = 0
for i in a:
  c += 1/i
print(1/c)

Solution (Python):



def main():
    
    n = int(input())
    temp = 0
    for i in map(int, input().split()):
        temp += 1/i


    
    print(1/temp)


if __name__ == '__main__':
    main()

Solution (Python):
n = int(input())
A = list(map(int, input().split()))
ans = 0

for i in range(n):
    ans += 1/A[i]

print(1/ans)

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
inv_sum = 0
for i in range(len(a)):
  inv_sum += 1 / a[i]
print(1 / inv_sum)

Solution (Python):
n = int(input())
a = list(map(int,input().split()))
ans = 0
for i in range(n):
    ans += 1/a[i]
print(1/ans)

Solution (Python):
n=int(input())
a=list(map(int,input().split()))
x=[1/i for i in a]
print(1/sum(x))

Solution (Python):
N = int(input())
A = [int(a) for a in input().split()]

for i in range(N):
    A[i] = 1/A[i]
    
print(1/sum(A))

Solution (Python):
import numpy as np
n = int(input())
a = np.array(list(map(int, input().split())))
a = 1/a
print(1/sum(a))

Solution (Python):
N=int(input())
A=list(map(int,input().split()))

s=0
for num in A:
  s += 1/num
  
print(1/s)

Solution (Python):
n=int(input())
ans=1/sum([1/int(i) for i in input().split()])
print(ans)

Solution (Python):
import numpy as np
n = int(input())
a = np.array(list(map(int, input().split() )))
print(1/sum(1/a))

Solution (Python):
n = int(input())
str = input()
ls = [int(u) for u in str.split()]
num = 1
denom = 0

for value in ls:
    denom += (1/value)
print(1/denom)

Solution (Python):
n = int(input())
a_list = list(map(int,input().split()))

div = 0
for a in a_list:
    div += 1/a
print(1/div)

Solution (Python):
n = int(input())
m = 0
for i in input().split():
    m += 1 / int(i)
m = 1 / m
if m == int(m):
    print(int(m))
else:
    print(m)

Solution (Python):
x = int(input())
y = [int(i) for i in input().split()]

tmp = []

for i in y:
  tmp.append(1/i)
  
print(1/sum(tmp))

Solution (Python):
import numpy as np
n = int(input())
a = np.array(list(map(int, input().split())))
print(1 / np.sum(1 / a))

Solution (Python):
n = int(input())
a = list(map(int, input().split()))

b = [1/i for i in a]
print(1/sum(b))

Solution (Python):
N = int(input())
A = list(map(int, input().split()))
t = 0
for i in range(N):
    t += 1 / A[i]
ans = 1 / t
print(ans)

Solution (Python):
N = int(input())
A = [int(i) for i in input().split()]

res = 0

for a in A:
    res += 1/a

print(1/res)

Solution (Python):
n = input()
v = map ( int,raw_input().split())

s=0
p = 1 
for i in v :    
    p *= i

num = p

for i in v :
    s += p / i

den = s
num = float ( num )
den = float ( den )

ans=num/den

print ans

Solution (Python):
N = int(input())
A = [1 / float(i) for i in input().split()]
num = 1 / sum(A)
print(num)

Solution (Python):
from fractions import Fraction
def inverse(f):
  return Fraction(f.denominator, f.numerator)

n = int(input())
a = [int(x) for x in input().split()]

r = 0
s = 0
while s < n:
  r += Fraction(1, a[s])
  s += 1

print(inverse(r).numerator/inverse(r).denominator)

Solution (Python):
N = int(input())
A = map(int, input().split())
print(1 / sum(1 / x for x in A))

Solution (Python):
n = int(input())
a = list(map(int,input().split()))

sn = 0

for i in range(n):
    sn += 1/a[i]
    
print(1/sn)

Solution (Python):
N=int(input())
A=list(map(int,input().split()))

preans=0

for i in range(N):
    preans+=1/A[i]

print(1/preans)

Solution (Python):
c=0
a=input()
for i in input().split():
  c+=1/int(i)
print(1/c)

Solution (Python):
n=int(input())
d=list(map(int,input().split()))
s=[]

for i in range(n):
  s.append(1/d[i])
print(1/sum(s))

Solution (Python):
N = int(input())
A = list(map(int,input().split()))
s = 0

for i in range(N):
	s += 1 / A[i]

print('{:.6f}'.format(1/s))

Solution (Python):
import numpy as np
n = int(input())
li = list(map(int,input().split()))
li_in = []
for i in li:
    li_in.append(1/i)
print(1/sum(li_in))

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
ans = 0

for i in a:
    ans += 1/i

print(1/ans)

Solution (Python):
N = int(input())

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


sum_bunsi = 0


for A in A_list:
        sum_bunsi += 1/A

print(1/sum_bunsi)

Solution (Python):
N=int(input())
A=input().split()
gyakusuu=[]
for i in range(N):
    gyakusuu.append(1/int(A[i]))

sum=0
for i in range(N):
    sum+=gyakusuu[i]
print(1/sum)

Solution (Python):
"""
author : halo2halo
date : 19,Oct,2019
"""

import sys
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 7)

N = int(readline())
lis = list(map(int, readline().split()))

mot = 0
for i in lis:
    mot += 1 / i

print(1/mot)

Solution (Python):
N = int(input())
A = list(map(int, input().split()))
B = []
S = 0
for i in range(N):
    B.append(1 / A[i])
S = sum(B)
print(str(1 / S))

Solution (Python):
input()
print(1 / sum([1 / i for i in map(int, input().split())]))

Solution (Python):
N = int(input())
A = list(map(int,input().split()))

sum = 0

for i in range(N):
    sum += 1/A[i]

ans = 1 / sum

print(ans)

Solution (Python):
N = int(input())
A = list(map(int, input().split()))
total = 0

for i in range(N):
  total += 1/A[i]
  
print(1/total)

Solution (Python):
n = int(input())
a = list(map(int,input().split()))

ans = 0
for v in a:
  ans += 1/v

print(1/ans)

Solution (Python):
n=int(input())
a=[int(x) for x in input().split()]
c=0
for i in range(n):
  c+=a[i]**(-1)
print(c**(-1))

Solution (Python):
N = int(input())
A = list(map(int, input().split()))

sum = 0
for i in range(N):
	sum += 1/A[i]
result = 1 / sum
print(result)

Solution (Python):
sum = 0.00
s = 0 
N = int(input()) 
numlist = list(input().split())
for i in range(N):
	s = int(numlist[i])
	sum = sum+(1/s)
print(1/sum)

Solution (Python):
N=input()
A=map(int,input().split())
print(1/sum(1/a for a in A))

Solution (Python):
n = int(input())
a = list(map(int, input().split()))

sum = 0
for i in range(n):
    sum += 1 / a[i]

ans = 1 / sum
print(ans)

Solution (Python):
n = int(input())
a = list(map(int,input().split()))
b = 0

for i in range(n):
    a[i] = 1 / a[i]
    
for i in range(n):
    b += a[i]
    
ans = 1 / b
print(ans)

Solution (Python):
N = int( input() )
A = list( map(int, input().split(" ")) )

A_gyaku = []
for a in A:
    A_gyaku.append( round(1/a, 7) )

print(1/sum(A_gyaku))

Solution (Python):
N = int(input())
A = list(map(int,input().split()))

reverse = 0

for i in A:
    reverse += 1/i

print(1/reverse)

Solution (Python):
n=int(input())
a=list(map(int,input().split()))
for i in range(n):
    a[i]=1/a[i]
print(1/sum(a))

Solution (Python):
import math

def main():
    n = int(input())
    a = [int(x) for x in input().split()]

    t = 0

    for i in range(n):
        t += 1/a[i]
    print(1/t)


if __name__ == '__main__':
    main()

Solution (Python):
N = int(input())
A = list(map(int,input().split()))
x = 1
for i in A:
    x *= i
y = 0
for i in A:
    y += x/i
print(x/y)

Solution (Python):
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

import numpy as np

N = int(readline())
A = np.array(read().split(),np.int64)

x=1/(1/A).sum()
print(x)

Solution (Python):
from fractions import Fraction

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

sum = 0

for a in A:
    sum += Fraction(1, a)

print(float(1/sum))

Solution (Python):
a = [input().split() for l in range(2)]
N=int(a[0][0])
bunbo=0
for i in range(N):
    
    bunbo=bunbo+1/int(a[1][i])

print(1/bunbo)

Solution (Python):
n = int(input())
A = list(map(int,input().split()))

res = 0

for i in range(len(A)):
	res = res + 1/A[i]
print(1/res)

Solution (Python):
n = int(input())
l = [int(x) for x in input().split()]

res = 0;
for i in l:
	res+=1/i
print(1/res)

Solution (Python):
n = int(input())
a = list(map(int,input().split()))
b=[]
for i in range(n):
  b.append(a[i]/a[i]**2)
A = sum(b)
print(A/A**2)

Solution (Python):
n = input()
li = list(map(int, input().split()))
p = 1
s = 0
for i in li:
    p *= i
for j in li:
    s += p / j
print(p/s)

Solution (Python):
N = int(input())
A = [int(x) for x in input().split()]

b = []
for i in range(N):
  b.append(1/A[i])

print(1/sum(b))

Solution (Python):
N = int(input())
Ai = list(map(int, input().split()))

s =1/sum([1/i for i in Ai])
print(s)

Solution (Python):
N=int(input())
alist=list(map(int,input().split()))

ainv_sum=0
for a in alist:
  ainv_sum+=1.0/a
  
print(1.0/ainv_sum)

Solution (Python):
n=int(input())
a=list(map(int,input().split()))
sum=0
for i in a:
  sum = sum + 1/i
print(1/sum)

Solution (Python):
n=int(input())
a=list(map(int,input().split()))

sum=0
for i in range(n):
    sum+=1/a[i]
sum=1/sum
print(sum)

Solution (Python):
n=int(input())
a=list(map(int,input().split()))
ans=0

for i in a:
    ans += 1/i
    

print(1/ans)