O2Jam is a music game. But it's Chinese version died long long ago.
XadillaX likes to play it very much. The problem is that he plays very bad.
What's his worst skill is to keep the long note. Long note is: you must hold it at its beginning and release it at its end.
At the same time, it may appear several note but XadillaX only may hold some of them, not all.
Now give you several long notes' start time and end time and how many notes XadillaX can hold at one time. I will querying for several times, you should tell me how many notes he will miss at a certain moment.
You may consider this O2Jam is not a normal O2Jam, it may appear beyond 7 notes at one moment.
For each querying, you should output how many note(s) XadillaX will miss at that moment. Then for each case, you should output how long will XadillaX miss at least one note?