Problem: There are persons who initially don't know each other. On each morning, two of them, who were not friends before, become friends.
We want to plan a trip for every evening of days. On each trip, you have to select a group of people that will go on the trip. For every person, one of the following should hold:
- Either this person does not go on the trip,
- Or at least of his friends also go on the trip.
Note that the friendship is not transitive. That is, if and are friends and and are friends, it does not necessarily imply that and are friends.
For each day, find the maximum number of people that can go on the trip on that day.
Input Format: The first line contains three integers , , and (, ) — the number of people, the number of days and the number of friends each person on the trip should have in the group.
The -th () of the next lines contains two integers and (, ), meaning that persons and become friends on the morning of day . It is guaranteed that and were not friends before.
Output Format: Print exactly lines, where the -th of them () contains the maximum number of people that can go on the trip on the evening of the day .
Note: In the first example,
- can go on day and .
In the second example,
- can go on day and .
- can go on day and .
- can go on day .
In the third example,
- can go on day .
- can go on day and .