/**
 *  author: mahfuzz
 *  created: 14.01.2020
**/
 
#include <bits/stdc++.h>
using namespace std;
#define all(a) (a).begin(), (a).end()
#define debug(x) cout << #x << ':' << x << endl;
typedef long long ll;

int main(int argc, char* argv[]){
    ios_base::sync_with_stdio(0);
    cin.tie(NULL);
    
    int n, m, t;
    cin >> n >> m >> t;

    int x1 = 0, y1 = 0, flag = 0, init = n; 
    for(int i = 0; i < m; i++){
        int x, y; cin >> x >> y;

        n -= abs(y1 - x);
        if(n <= 0)
            flag = true;

        n = min(init, n + (y - x));
        x1 = x, y1 = y;
    }

    if(n - (t - y1) <= 0 || flag)
        cout << "No\n";
    else
        cout << "Yes\n";

    
        
    return 0;
}

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

int main() {
    int N,S,D;
    cin>>N>>S>>D;

    for(int i=0;i<N;i++){
        int X,Y;
        cin>>X>>Y;

        if(X<S&&Y>D){
            puts("Yes");
            return 0;
        }
    }
    puts("No");
}