Shopping center
Candice wants to go to the mall to hang out with Jeremy. She looked at the bus schedule and found out that buses leave from their house in the direction of the shopping center today, -th of them will stop near their house in minutes from the current moment and go from home to shopping center minutes. Help Candice determine the earliest time she can arrive at the mall.
Input
The first line contains one integer - the number of buses.
The next lines contain two integers and - the number of minutes that will pass before the -th bus will pass Candice's house, and the number of minutes that the -th bus will travel from the house to the mall.
Output
Print a single integer, the minimum number of minutes that Candace will need to arrive at the shopping center.