Fuad loves to eat candies, and there is a big confectionery shop near their house. This shop has announced a new promotion. When paying in cash, they return the change to their customers in candies. One candy for each qapik.
Of course, the number of candies they give cannot exceed 99, because 100 qapiks can be replaced with 1 manat, and the shop always follows this principle.
Fuad's grandmother gave him s manats in cash and told him to buy a cake at the confectionery. The shop sells n different cakes. The price of cake i is mi manats and qi qapiks.
Now Fuad is only concerned about which cake to buy to get as many candies as possible. He doesn't care whether the cake he buys is expensive or cheap.
Find the maximum number of candies that Fuad can get. If Fuad doesn't have enough money to buy any cake, print −1.
The first line contains two integers n and s (1≤n,s≤100). Each of the following n lines contains two integers mi (1≤mi≤100) and qi (0≤qi<100).
Print the maximum number of candies that Fuad can get from buying one cake, and −1 if he doesn't have enough money to buy any cake.