#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int l, m;
  int k = 0;
  while (n--) {
    cin >> l >> m;
    k = max(k, l + m);
  }
  cout << k << endl;
  return 0;
}
