#t89. 铺地毯
铺地毯
Laying Carpets
Problem Description
Dazhi's dad made money building subways, so he bought a lot of carpets and laid them over the living room again and again.
The living room is exactly a rectangle, and the width of the carpets matches the width of the room, so along the length the carpets overlap. The length of the room is . Dazhi wants to know how many layers of carpet cover each -metre segment.

Input Format
The first line contains , where is the length of the room and is the number of carpets. .
The following lines each contain a pair , both integers, the start and end positions of the -th carpet. .
Output Format
One line of integers, where the -th number is the number of carpets covering the -th metre.
Sample Input
4 3
1 3
0 2
1 4
Sample Output
1 3 2 1