gets
nums = gets.split(" ").map(&:to_i)
bunbos = []
nums.each do |ele|
  bunbos << Rational(1,ele)  
end
bunbo = bunbos.inject(:+)
bs = Rational(1,bunbo)
num = bs.numerator.to_f / bs.denominator.to_f

puts num
