{"trustable":true,"sections":[{"title":"Description","value":{"format":"MD","content":"Jinjin has started junior high school. Her mother thinks Jinjin should study harder, so in addition to going to school, Jinjin also has to attend various subject review classes that her mother has signed her up for. In addition, her mother also sends her to learn recitation, dance, and piano every week. However, if Jinjin has more than eight hours of classes in a day, she will be unhappy, and the longer she has classes, the unhappier she will be. Assuming Jinjin will not be unhappy for other reasons, and her unhappiness will not last until the next day. Please help check Jinjin\u0027s schedule for next week to see if she will be unhappy, and if so, on which day she will be the most unhappy."}},{"title":"Input","value":{"format":"MD","content":"The input consists of $7$ lines of data, representing the schedule for Monday to Sunday. Each line includes two non-negative integers less than $10$, separated by a space, representing the time Jinjin spends in school and the time her mother arranges for her to attend classes."}},{"title":"Output","value":{"format":"MD","content":"A number. If Jinjin will not be unhappy, output $0$; if she will be unhappy, output the day of the week when she will be the most unhappy (represented by $1, 2, 3, 4, 5, 6, 7$ for Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday). If there are two or more days of equal unhappiness, output the earliest day."}},{"title":"Sample 1","value":{"format":"MD","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e5 3\n6 2\n7 2\n5 3\n5 4\n0 4\n0 6\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e3\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e"}},{"title":"Hint","value":{"format":"MD","content":"NOIP2004 Junior Group Question 1\n\n- October 27, 2021: Added a set of hack data\n- June 5, 2022: Added another set of hack data"}}]}