Problem2153--Coloring Rectangles

2153: Coloring Rectangles

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description




Output



Sample Input Copy

4
1 3
2 2
2 5
3 5

Sample Output Copy

1
2
4
5

Source/Category