Roger has taken
Roger's teacher decides that, for some value of
Constraints
Input Specification
The first line will contain an integer
Each of the next
Output Specification
Output
Sample Input
5
1 2
5 9
3 8
4 10
1 3
Sample Output
2
1
2
Roger has taken
Roger's teacher decides that, for some value of
The first line will contain an integer
Each of the next
Output
5
1 2
5 9
3 8
4 10
1 3
2
1
2
Comments