CF45D Event Dates
Description
On a history lesson the teacher asked Vasya to name the dates when $ n $ famous events took place. He doesn't remembers the exact dates but he remembers a segment of days $ [l_{i},r_{i}] $ (inclusive) on which the event could have taken place. However Vasya also remembers that there was at most one event in one day. Help him choose such $ n $ dates of famous events that will fulfill both conditions. It is guaranteed that it is possible.
Input Format
The first line contains one integer $ n $ ( $ 1
Output Format
Print $ n $ numbers — the dates on which the events took place. If there are several solutions, print any of them. It is guaranteed that a solution exists.