Cow Jog

No attempts yetTime limit1sMemory limit256 MB

Problem

Farmer John's NN cows are jogging along an infinite track. Cow ii starts at position xix_i and runs in the same direction at a constant speed of viv_i per minute. All starting positions are distinct.

The track is divided into lanes, so cows in different lanes may move past each other. No two cows in the same lane may ever occupy the same position. Farmer John does not want any cow to change lanes or adjust its speed.

The cows run for TT minutes. Find the minimum number of lanes he needs. Times from 00 to TT count, including time TT itself.

Input

The first line contains the number of cows NN and the running time TT. (1N1051 \le N \le 10^5, 1T1091 \le T \le 10^9)

Each of the next NN lines contains the starting position xix_i and the speed viv_i of one cow. xix_i is a nonnegative integer at most 10910^9, and viv_i is a positive integer at most 10910^9. All starting positions are distinct and are given in increasing order.

Output

Print one line with the minimum number of lanes needed so that no two cows in the same lane ever occupy the same position up to time TT.