x = gets.to_i a = Rational(0,1) 20000.times{|n| a+=Rational(1,(x+n+1)*(x+n+1)) } p a.to_f