#include <iostream>
typedef long long ll;
using namespace std;

int main()
{
    int n,s,d,i;
    cin>>n>>s>>d;
    int f=0;
    for(i=1;i<=n;i++)
    {
        int x,y;
        cin>>x>>y;
        if(!(x>=s||y<=d))
            f=1;
    }
    if(f)
        cout<<"Yes";
    else
        cout<<"No";
    return 0;
}

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int) (n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int) (n); i++)
#define _GLIBCXX_DEBUG

int tasty[4];

int main(){
    for(int i=0; i<4; i++) cin >> tasty[i];

    for(int bit = 1; bit < (1<<4); bit++){
        int x=0, y=0;
        for(int i=0; i<4; i++){
            if(bit & (1<<i)){
                x += tasty[i];
            } else {
                y += tasty[i];
            }
        }
        if(x == y) {
            cout << "Yes" << endl;
            return 0;
        }
    }
    cout << "No" << endl;
}