#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a[110], b[110], c = 0;
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> a[i] >> b[i];
  for (int i = 1; i < n; i++) {
    for (int j = i + 1; j <= n; j++) {
      if (b[i] == -b[j]) {
        if (a[i] + b[i] == a[j]) {
          c = 1;
        }
      }
    }
  }
  if (c == 0)
    cout << "No\n";
  else
    cout << "Yes\n";
}
