{"raw_statement":[{"iden":"problem statement","content":"You are given non-zero integers $x_1, \\ldots, x_N$. Find the minimum and maximum values of $\\dfrac{x_i+x_j+x_k}{x_ix_jx_k}$ for integers $i$, $j$, $k$ such that $1\\leq i < j < k\\leq N$."},{"iden":"constraints","content":"*   $3\\leq N\\leq 2\\times 10^5$\n*   $-10^6\\leq x_i \\leq 10^6$\n*   $x_i\\neq 0$"},{"iden":"input","content":"The input is given from Standard Input in the following format:\n\n$N$\n$x_1$ $\\ldots$ $x_N$"},{"iden":"sample input 1","content":"4\n-2 -4 4 5"},{"iden":"sample output 1","content":"\\-0.175000000000000\n-0.025000000000000\n\n$\\dfrac{x_i+x_j+x_k}{x_ix_jx_k}$ can take the following four values.\n\n*   $(i,j,k) = (1,2,3)$: $\\dfrac{(-2) + (-4) + 4}{(-2)\\cdot (-4)\\cdot 4} = -\\dfrac{1}{16}$.\n*   $(i,j,k) = (1,2,4)$: $\\dfrac{(-2) + (-4) + 5}{(-2)\\cdot (-4)\\cdot 5} = -\\dfrac{1}{40}$．\n*   $(i,j,k) = (1,3,4)$: $\\dfrac{(-2) + 4 + 5}{(-2)\\cdot 4\\cdot 5} = -\\dfrac{7}{40}$．\n*   $(i,j,k) = (2,3,4)$: $\\dfrac{(-4) + 4 + 5}{(-4)\\cdot 4\\cdot 5} = -\\dfrac{1}{16}$.\n\nAmong them, the minimum is $-\\dfrac{7}{40}$, and the maximum is $-\\dfrac{1}{40}$."},{"iden":"sample input 2","content":"4\n1 1 1 1"},{"iden":"sample output 2","content":"3.000000000000000\n3.000000000000000"},{"iden":"sample input 3","content":"5\n1 2 3 4 5"},{"iden":"sample output 3","content":"0.200000000000000\n1.000000000000000"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}