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