#include using namespace std; int main () { int n; cin >> n; while (n--) { string a , b; cin >> a >> b; } cout << "Yes" << endl; return 0; }