#include <bits/stdc++.h>
using namespace std;

int main() {
    int N, S, D;
    cin >> N >> S >> D;
    vector<pair<int, int>> magic(N);
    bool a = false;
    for (int i = 0; i < N; i++) {
        cin >> magic.at(i).first;
        cin >> magic.at(i).second;
        if(magic.at(i).first < S && D < magic.at(i).second) {
            a = true;
        }
    }
    
    if (a == true) {
        cout << "Yes" << endl;
    }
    else {
        cout << "No" << endl;
    }
}

#include <bits/stdc++.h>
using namespace std;

const int N = 1e5 + 5;
int n[N];

int main(){
    int a, b , c ,d;
    cin >> a >> b >> c>>d;
    cout << b -c;
}
