#include <bits/stdc++.h>
using namespace std;
int n, ma = 0;
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) {
    int x, y;
    cin >> x >> y;
    ma = max(x + y, ma);
  }
  cout << ma << endl;
}
