{"raw_statement":[{"iden":"problem statement","content":"Takahashi and Aoki have $N$ and $M$ bottles of sugar water, respectively.  \nTakahashi's $i$\\-th sugar water is composed of $A_i$ grams of sugar and $B_i$ grams of water.  \nAoki's $i$\\-th sugar water is composed of $C_i$ grams of sugar and $D_i$ grams of water.  \nThere are $NM$ ways to choose one from Takahashi's sugar waters and one from Aoki's and mix them. Among the $NM$ sugar waters that can be obtained in this way, find the concentration of sugar in the sugar water with the $K$\\-th highest concentration of sugar.  \nHere, the concentration of sugar in sugar water composed of $x$ grams of sugar and $y$ grams of water is $\\dfrac{100x}{x+y}$ percent. We will ignore saturation."},{"iden":"constraints","content":"*   $1 \\leq N, M \\leq 5 \\times 10^4$\n*   $1 \\leq K \\leq N \\times M$\n*   $1 \\leq A_i, B_i, C_i, D_i \\leq 10^5$\n*   All values in the input are integers."},{"iden":"input","content":"The input is given from Standard Input in the following format:\n\n$N$ $M$ $K$\n$A_1$ $B_1$\n$A_2$ $B_2$\n$\\vdots$\n$A_N$ $B_N$\n$C_1$ $D_1$\n$C_2$ $D_2$\n$\\vdots$\n$C_M$ $D_M$"},{"iden":"sample input 1","content":"3 1 1\n1 2\n4 1\n1 4\n1 4"},{"iden":"sample output 1","content":"50.000000000000000\n\nLet $(i, j)$ denote the sugar water obtained by mixing Takahashi's $i$\\-th sugar water and Aoki's $j$\\-th.  \nBelow are the sugar waters that can be obtained and their concentrations of sugar.\n\n*   $(1, 1)$ : $100 \\times \\frac{1 + 1}{(1 + 1) + (2 + 4)} = 25 \\%$\n*   $(2, 1)$ : $100 \\times \\frac{1 + 4}{(4 + 1) + (1 + 4)} = 50 \\%$\n*   $(3, 1)$ : $100 \\times \\frac{1 + 1}{(1 + 1) + (4 + 4)} = 20 \\%$\n\nAmong them, the sugar water with the highest concentration of sugar is $(2, 1)$, with a concentration of $50$ percent."},{"iden":"sample input 2","content":"2 2 2\n6 4\n10 1\n5 8\n9 6"},{"iden":"sample output 2","content":"62.500000000000000"},{"iden":"sample input 3","content":"4 5 10\n5 4\n1 6\n7 4\n9 8\n2 2\n5 6\n6 7\n5 3\n8 1"},{"iden":"sample output 3","content":"54.166666666666664"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}