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