#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int N; cin >> N; set> s; bool ok = false; for (int i = 0; i < N; i++) { int a, b; cin >> a >> b; if (s.count({a, b})) ok = true; s.insert({a, b}); } cout << (ok ? "Yes" : "No") << "\n"; return 0; }