#include using namespace std; int main(){ int N;cin >> N; vector> ab; for(auto &i:ab){ cin >> i.first >> i.second; } cout << "Yes" << endl; }