Gas Stations

아직 제출이 없습니다시간 제한1초메모리 제한1024 MB

문제

Michelle and Marie went to a journey by their car. During the journey they are going to drive along the long straight road. There are nn gas stations on the road. Gas stations are numbered from 11 to nn along the road. Initially the car is located in the city at the beginning of the road, at the same place there is a gas station number 11.

Gas station number ii is located at the distance of x_ix\_i kilometers from the beginning of the road and sells gas for the price of p_ip\_i dollars per liter. It is only allowed to purchase an integer number of liters of gas at each station. One liter of gas is enough to drive 11 unit of distance along the road. The gas tank of the car has the capacity of CC liters. Initially the tank is empty.

Michelle and Marie have BB dollars in total to be spent on gas. How far along the road are they able to go if they don't bother about the way back yet?

입력

The first line of input contains three integers nn, BB and CC --- the number of gas stations, total budget in dollars and the capacity of the gas tank in liters correspondingly (1n1051 \le n \le 10^5; 1B1091 \le B \le 10^9; 1C1091 \le C \le 10^9).

Each of the next nn lines contains two integers x_ix\_i and p_ip\_i --- the coordinate of ii-th gas station and the gas price there correspondingly (0=x_1<x_2<<x_n1090 = x\_1 < x\_2 < \ldots < x\_n \le 10^9; 1p_i1091 \le p\_i \le 10^9).

출력

Output one integer --- maximal possible distance that may be driven along the road.

힌트

In the sample test it is possible to buy 11 liter of gas at the first station, drive 11 unit of distance, buy 55 liters of gas at the second station, drive another 33 units of distance to get to the third station. At this moment there are 22 liters of gas in the tank, the friends can buy another 11 liter of gas and drive another 33 units of distance, finishing their trip at a distance of 77 from the beginning.