#d1507. 测温
测温
Temperature Measurement
Problem Description
A country measured the temperature for consecutive days. Each measurement has some error: the result of the -th day's measurement says the temperature lies in the range . Find the length of the longest consecutive run of days over which the temperature is non-decreasing.
Input Format
The first line contains an integer ().
The following lines each contain two numbers ().
Output Format
One line containing the length of such a run.
Sample Input
6
6 10
1 5
4 8
2 5
6 8
3 5
Sample Output
4