{"raw_statement":[{"iden":"problem statement","content":"$N$ examinees took an entrance exam.  \nThe examinee numbered $i$ scored $A_i$ points in math and $B_i$ points in English.\nThe admissions are determined as follows.\n\n1.  $X$ examinees with the highest math scores are admitted.\n2.  Then, among the examinees who are not admitted yet, $Y$ examinees with the highest English scores are admitted.\n3.  Then, among the examinees who are not admitted yet, $Z$ examinees with the highest total scores in math and English are admitted.\n4.  Those examinees who are not admitted yet are rejected.\n\nHere, in each of the steps 1. to 3., ties are broken by examinees' numbers: an examinee with the smaller examinee's number is prioritized. See also Sample Input and Output.\nPrint the examinees' numbers of the admitted examinees determined by the steps above in ascending order, separated by newlines."},{"iden":"constraints","content":"*   All values in input are integers.\n*   $1 \\le N \\le 1000$\n*   $0 \\le X,Y,Z \\le N$\n*   $1 \\le X+Y+Z \\le N$\n*   $0 \\le A_i,B_i \\le 100$"},{"iden":"input","content":"Input is given from Standard Input in the following format:\n\n$N$ $X$ $Y$ $Z$\n$A_1$ $A_2$ $\\dots$ $A_N$\n$B_1$ $B_2$ $\\dots$ $B_N$"},{"iden":"sample input 1","content":"6 1 0 2\n80 60 80 60 70 70\n40 20 50 90 90 80"},{"iden":"sample output 1","content":"1\n4\n5\n\n*   First, $1$ examinee with the highest math score is admitted.\n    *   Examinee $1$ is tied with Examinee $3$, scoring the highest $80$ points in math, and the tie is broken by the examinees' numbers, so Examinee $1$ is admitted.\n*   Then, among the examinees who are not admitted yet, $0$ examinees with the highest English scores are admitted.\n    *   Obviously, it does not affect the admissions.\n*   Then, among the examinees who are not admitted yet, $2$ examinees with the highest total scores in math and English are admitted.\n    *   First, among the examinees who are not admitted yet, Examinee $5$ is admitted, scoring the highest total score of $160$ points.\n    *   Next, among the examinees who are not admitted yet, Examinee $4$ is tied with Examinee $6$, scoring a total score of $150$ points. The tie is broken by the examinees' numbers, and Examinee $4$ is admitted.\n\nTherefore, the examinees' numbers of the admitted examinees are $1$, $4$, and $5$. Print them in ascending order."},{"iden":"sample input 2","content":"5 2 1 2\n0 100 0 100 0\n0 0 100 100 0"},{"iden":"sample output 2","content":"1\n2\n3\n4\n5\n\nAll examinees may be admitted."},{"iden":"sample input 3","content":"15 4 3 2\n30 65 20 95 100 45 70 85 20 35 95 50 40 15 85\n0 25 45 35 65 70 80 90 40 55 20 20 45 75 100"},{"iden":"sample output 3","content":"2\n4\n5\n6\n7\n8\n11\n14\n15"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}