#include <bits/stdc++.h>
int main() {
  int n, x, d;
  int ban = 0;
  int i, j;
  scanf("%d", &n);
  int camelSpit[n][2];
  for (i = 0; i < n; i++) {
    scanf("%d %d", &camelSpit[i][0], &camelSpit[i][1]);
  }
  for (i = 0; i < n; i++) {
    x = camelSpit[i][0];
    d = camelSpit[i][1];
    for (j = 0; j < n; j++) {
      if (i == j) {
        continue;
      } else {
        if (x + d == camelSpit[j][0]) {
          if (camelSpit[j][0] + camelSpit[j][1] == x) {
            ban = 1;
          }
        }
      }
    }
  }
  if (ban == 0) {
    printf("NO");
  } else {
    printf("YES");
  }
  return 0;
}
