Since Zain is a busy student, he keeps a calendar with all his important upcoming assessments. However, Zain keeps forgetting to check his calendar and occasionally checks it!
Given this information, Zain wants you to tell him the assessments he has today or has had since his last check (if it is his first check, assume it started before the first assessment in his calendar).
Currently, Zain has
Zain will check his calendar a total of
Can you help him?
Input Specification
The first line will contain
The next
The name of an assessment will be at most _
.
The next
Note: The assessments for a given check should be output in the order given in the input.
Output Specification
For each check, output all the assessments between the last check and the current day on different lines (including the current day).
Sample Input
3 5
3 Physics
6 English
5 Rock_throwing
1
3
6
7
8
Sample Output
Physics
English
Rock_throwing
Explanation for Sample Output
The first check has no assessments, the second check has Physics
, the third check has English
and Rock_throwing
(note the order they were output), and every other check has no assessments.
Comments