func_code_string: #include <bits/stdc++.h>   using namespace std;   const int N = 1e3;   int n, x[N], d[N], i, j;   int main() {     cin >> n;     for (i = 0; i < n; i++) cin >> x[i] >> d[i];     for (i = 0; i < n; i++)       for (j = i + 1; j < n; j++)         if (x[i] + d[i] == x[j] && x[j] + d[j] == x[i]) return cout <<  YES , 0;     cout <<  NO ;     return 0;   }   