#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n, x[101], d[101];
  int ans = 0;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> x[i] >> d[i];
  }
  for (int i = 1; i <= n - 1; i++) {
    for (int j = i + 1; j <= n; j++)
      if (d[i] + d[j] == 0 && abs(x[i] - x[j]) == abs(d[i])) ++ans, j++;
  }
  if (ans != 0)
    cout << "YES\n";
  else
    cout << "NO\n";
  return 0;
}
