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

typedef long long int ll;
typedef pair<int, int> pii;
 
#define SZ(x)                       (int) x.size()
#define F                           first
#define S                           second

const int N = 1e6 + 10, MOD = 1e9 + 7;
ll n, m, T, L[N], R[N], c;

int main() {
    scanf("%lld%lld%lld", &n, &m, &T); c = n;
    for (int i = 1; i <= m; i++) {
        scanf("%lld%lld", &L[i], &R[i]);
    }
    for (int i = 1; i <= m; i++) {
        c = max(0LL, c - (L[i] - R[i - 1]));
        if (c == 0) return !printf("No\n");
        c = min(n, c + R[i] - L[i]);
    }
    if (T - R[m] >= c) printf("No\n");
    else printf("Yes\n");
    return 0;
}

#include <bits/stdc++.h>


#define vi vector<int>
#define tests int t; cin>>t; while(t--)
#define ll long long
#define vll vector<long long>
#define srt(v) sort(v.begin(), v.end())
#define srtg(v) sort(v.begin(), v.end(), greater<int> ())
#define FOR(k, n) for(int k=0; k<n; k++)
#define pb push_back
#define yes cout<<"YES"<<endl
#define no cout<<"NO"<<endl
#define printarr(v) for(auto& x : v) cout<<x<<" "; cout<<endl
#define ree cout<<"******************************************"<<endl
#define double long double

using namespace std;


char nums[10] = { '0','1','2','3','4','5','6','7','8','9' };
char alphsl[26] = { 'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z' };
const int MOD = 1000000007;
char alphs[26] = { 'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z' };
const double pi = 3.14159265358;




void solve() {
    
    int n, m, t;
    cin>>n>>m>>t;
    
    vi a(m), b(m);
    for(int i=0; i<m; i++){
        cin>>a[i]>>b[i];
    }
    int last=0, start=n;
    for(int i=0; i<m; i++){
        n-=a[i]-last;
        if(n<=0){
            cout<<"No"<<endl;
            return;
        }
        n+=b[i]-a[i];
        n=min(start, n);        
        last=b[i];
    }
    n-=t-last;
    if(n<=0){
            cout<<"No"<<endl;
            return;
        }
        cout<<"Yes"<<endl;
    
}


int main() {

    ios_base::sync_with_stdio(false);
    cin.tie(0);
    
   
    
        //tests
        solve();


    return 0;
}


