#Z15110. 不高兴的津津
不高兴的津津
Here's the translation of the Chinese text to English while preserving all markdown formatting and code blocks:
## Description
Jinjin is now in middle school. Her mother believes Jinjin should study harder, so in addition to school, Jinjin also attends various review classes her mother has enrolled her in.
Furthermore, every week her mother sends her to learn recitation, dance, and piano. However, Jinjin becomes unhappy if her daily class hours exceed eight, and the longer her classes go beyond that, the unhappier she becomes.
Assuming Jinjin won't be unhappy for other reasons and her unhappiness doesn't carry over to the next day, please help check Jinjin's schedule for next week to see if she will be unhappy. If she will be, determine which day she will be the most unhappy.
## Input Format
The input consists of seven lines of data, representing the schedule from Monday to Sunday.
Each line contains two non-negative integers less than 10, separated by a space, indicating the hours Jinjin spends in school and the hours her mother has arranged for her, respectively.
## Output Format
The output consists of a single line containing one number. If Jinjin won't be unhappy, output `0`. If she will be unhappy, output the day of the week (represented by `1, 2, 3, 4, 5, 6, 7` for Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday) when she is the most unhappy. If there are two or more days with equal levels of unhappiness, output the earliest such day.
5 3
6 2
7 2
5 3
5 4
0 4
0 6
3