Dishonest Coach#283

Dishonest Coach

0.5 seconds
128 megabytes
Medium

At all programming olympiads, all participants and their coaches must adhere to academic integrity. But, unfortunately, this is not always the case ...

Suppose students, trained by one coach, take part in the olympiad. Each student has two parameters: r_i the number of points this student can score on their own, and a conditional aptitude t_i.

The olympiad is held online and without proctoring, so, during the olympiad, the coach can call one of his students and give a hint. After such a hint, the number of points of this student will increase by t_i. During the olympiad, the coach can make no more than such calls.

To become a prize-winner of the olympiad, one must score no less than points. Write a program that determines how many students of this dishonest coach can become prize-winners of the olympiad. Note that each time the coach helps only one student, he can call the same student several times.

Input

The first line of the input data contains the numbers , and . Then follow pairs of non-negative integers: r_i and t_i.

Constraints

1 \le N \le 10^6

1 \le K \le 10^9

1 \le R \le 10^9

0 \le r_i \le 10^9

0 \le t_i \le 10^9

Output

Print a single number the maximum number of prize-winners of the olympiad that the dishonest coach can achieve.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading