def fac(n) [*1..n].reduce(1,:*) end N=10 X=(0...N).sum{|n|(-1)**n*24*(1123+21460*n)*(n>0 ? (4*n)*(4*n-1)*(4*n-2)*(4*n-3) : 0)/(882**(2*n+1)*(2**(2**n)*fac(n))**4).to_f} Y=Math.sqrt(8)/99**2*(0...N).sum{|n|fac(4*n)*(1103+26390*n)/((396**n*fac(n))**4).to_f} printf "%.16f\n",gets.to_f*X/Y