#include #include using namespace std; int main() { int n; cin >> n; int a[n][2]; string s[n]; for(int i = 0; i < n; i++) cin >> a[i][0] >> a[i][1]; for(int i = 0; i < n; i++){ s[i] = to_string(a[i][0]) + to_string(a[i][1]); } int cnt = 0; for(int i = 0; i < n; i++){ for(int l = 0; l < n; l++){ if(!(l==i)){ if(s[i] == s[l]){ cnt++; } } } } if(cnt >= 1){ cout << "Yes" << endl; }else{ cout << "No" << endl; } }