n = gets.to_i a,b = Rational(3), Rational(4) 1.upto(n){a,b=Rational(19,4)*a-3*b,a} puts format("%.30f",b.to_f)