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