#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main()
{
    ll n,cap,m,t;
    cin>>n>>m>>t;
    cap = n;
    vector<ll> A(m);
    vector<ll> B(m);
    for(int i=0; i<m; i++)
        cin>>A[i]>>B[i];
    ll Time = 0, i=0;
    while(i<m){
        cap -= A[i] - Time;
        //cout<<cap<<endl;
        if(cap <= 0){
            cout<<"No"<<endl;
            return 0;
        }
        cap = min(n,cap + B[i] - A[i]);
        //cout<<cap<<endl;
        Time = B[i];
        i++;
    }
    cap -= t - Time;
    if(cap <= 0){
        cout<<"No"<<endl;
    }
    else{
        cout<<"Yes"<<endl;
    }
    
    return 0;
}

// Problem: B - Smartphone Addiction
// Contest: AtCoder - AtCoder Beginner Contest 185
// URL: https://atcoder.jp/contests/abc185/tasks/abc185_b
// Memory Limit: 1024 MB
// Time Limit: 2000 ms
// Powered by CP Editor (https://github.com/cpeditor/cpeditor)


// Problem: A - ABC Preparation
// Contest: AtCoder - AtCoder Beginner Contest 185
// URL: https://atcoder.jp/contests/abc185/tasks/abc185_a
// Memory Limit: 1024 MB
// Time Limit: 2000 ms
// Powered by CP Editor (https://github.com/cpeditor/cpeditor)

#include <bits/stdc++.h>
#define ll long long
#define fast ios_base::sync_with_stdio(false);cin.tie(NULL)
#define fr(i,a,b) for(int i=a;i<b;i++)
#define frr(i,a,b) for(int i=a;i>=b;i--)
//vector
#define pb push_back
#define vi vector<int>
#define vl vector<ll>
#define pp pop_back
//pair
#define pi pair<int ,int >
#define mk make_pair
#define ff first
#define ss second
//set
#define si set<int>
#define sit set<int>::iterator 
//bits
#define bp(x)  __builtin_clzll(x)
#define case Case #
using namespace std;
int main()
{
	
	// #ifndef ONLINE_JUDGE
 //        freopen("input.txt","r",stdin);
 //        freopen("output.txt","w",stdout);
	// #endif
	
fast;
ll n,m,t;cin>>n>>m>>t;
ll f=1,pre=0,mx=n;
fr(i,0,m)
{
	ll x,y;cin>>x>>y;
	n-=abs(x-pre);
	if(n<=0) f=0;
	n+=abs(x-y);
	n=min(n,mx);
	pre=y;
}
n-=abs(pre-t);
if(n<=0) f=0;
if(f) cout<<"Yes";
else cout<<"No";
return 0;
}