{"raw_statement":[{"iden":"problem statement","content":"$N$ students are taking a $4$\\-day exam.\nThere is a $300$\\-point test on each day, for a total of $1200$ points.\nThe first three days of the exam are already over, and the fourth day is now about to begin. The $i$\\-th student $(1 \\leq i \\leq N)$ got $P_{i, j}$ points on the $j$\\-th day $(1 \\leq j \\leq 3)$.\nFor each student, determine whether it is possible that he/she is ranked in the top $K$ after the fourth day.  \nHere, the rank of a student after the fourth day is defined as the number of students whose total scores over the four days are higher than that of the student, plus $1$."},{"iden":"constraints","content":"*   $1 \\leq K \\leq N \\leq 10^5$\n*   $0 \\leq P_{i, j} \\leq 300 \\, (1 \\leq i \\leq N, 1 \\leq j \\leq 3)$\n*   All values in input are integers."},{"iden":"input","content":"Input is given from Standard Input in the following format:\n\n$N$ $K$\n$P_{1,1}$ $P_{1,2}$ $P_{1,3}$\n$\\vdots$\n$P_{N,1}$ $P_{N,2}$ $P_{N,3}$"},{"iden":"sample input 1","content":"3 1\n178 205 132\n112 220 96\n36 64 20"},{"iden":"sample output 1","content":"Yes\nYes\nNo\n\nIf every student scores $100$ on the fourth day, the $1$\\-st student will rank $1$\\-st.  \nIf the $2$\\-nd student scores $100$ and the other students score $0$ on the fourth day, the $2$\\-nd student will rank $1$\\-st.  \nThe $3$\\-rd student will never rank $1$\\-st."},{"iden":"sample input 2","content":"2 1\n300 300 300\n200 200 200"},{"iden":"sample output 2","content":"Yes\nYes"},{"iden":"sample input 3","content":"4 2\n127 235 78\n192 134 298\n28 56 42\n96 120 250"},{"iden":"sample output 3","content":"Yes\nYes\nNo\nYes"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}