require 'bigdecimal' x = BigDecimal(gets.chomp) ans = BigDecimal("0.0") 1.upto(100000){|i| tmp = BigDecimal(i.to_s) + x ans += BigDecimal("1.0") / (tmp * tmp) } puts ans.to_f