a, b = Rational(4), Rational(3) gets.to_i.times do |i| a, b = b, (19 * b - 12 * a) / 4 end puts sprintf("%.12f", a.to_f)