#include <bits/stdc++.h>
using namespace std;
int a[2 * 20005], n, x, d;
bool ok = false;
int main() {
  scanf("%d", &n);
  memset(a, 0, sizeof(a));
  for (int i = 0; i < n; i++) {
    scanf("%d %d", &x, &d);
    if (a[x + d + 20005] == -d) ok = true;
    a[x + 20005] = d;
  }
  if (ok)
    printf("YES");
  else
    printf("NO");
  return 0;
}
