In the context of online games, a whale is a player who spends great sums of real money on video games. A certain whale has discovered ~N~ different membership options for a game they play, with the ~i~-th costing ~c_i~ dollars and lasting ~d_i~ days. Keeping in mind that this whale would like to have membership for as long as possible while minimizing how much they swipe their credit card for, can you help them determine the best membership option?
Line ~1~: a single integer, ~N~.
Lines ~2 \ldots N + 1~: line ~i~ will contain two space separated integers, ~c_i~ and ~d_i~.
Two space separated integers, the values ~c_i~ and ~d_i~ representing the best membership.
~1 \le N \le 10~
~1 \le c_i, d_i \le 100~
3 1 4 2 1 1 1
Explanation for Sample Output
The first membership lasts for 4 days, which is greater than the duration of the other two memberships (lasting only ~1~ day).
Since it is the cheapest membership (in this case, the only one) lasting ~4~ days, the whale should take it.