How to become a winner#1697

How to become a winner

1 second
128 megabytes
Very easy

schoolchildren attend the trainer's classes in preparation for the Olympiad. Each schoolchild is characterized by two parameters: initial conditional experience a_i and conditional intelligence b_i.

Each lesson is organized as follows: the trainer approaches a schoolchild and discusses questions and problems. As a result of this discussion, the conditional experience of that schoolchild increases by b_i. (The higher the student's conditional intelligence, the more they benefit from communicating with the trainer.)

During the preparation, the coach can approach all the students in total no more than times (they may approach different students, or the same student multiple times). To become an Olympiad prize-winner, a schoolchild must have at least conditional experience by the start of the Olympiad.

Write a program to calculate the maximum number of Olympiad prize-winners that the coach can prepare.

Input

First, natural numbers , , (1 \leq n \leq 10^6, 1 \leq c \leq 10^9, 1 \leq k \leq 10^9) are given, representing the number of students, the number of approaches the coach can make, and the conditional experience required to become a prize-winner, respectively. Then pairs of non-negative integers a_i, b_i are given, representing the initial conditional experience and conditional intelligence of each student. Each value a_i and b_i does not exceed 10^9.

Output

Print one number — the maximum number of Olympiad prize-winners the coach can prepare.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading