#include<bits/stdc++.h>
#define ll long long
#define mp make_pair
#define f(i,n) for(int i=0;i<n;i++)
#define F first
#define S second
#define pb push_back
using namespace std;
void test(){
ll n,m,t;
cin>>n>>m>>t;
ll cap = n;
bool flag = true;
ll prev = 0;
f(i,m){
ll a,b;
cin>>a>>b;
n = n - (a-prev);
if(n<=0)flag = false;
n = min(cap,n + (b-a));
prev = b;
}
n = n - (t-prev);
if(n<=0)flag = false;
if(flag)cout<<"Yes\n";
else cout<<"No\n";
}
int main(){
std::ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int tests=1;
// cin>>tests;
while(tests--){
test();
}
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KI2RlZmluZSBsbCBsb25nIGxvbmcgCiNkZWZpbmUgbXAgbWFrZV9wYWlyIAojZGVmaW5lIGYoaSxuKSBmb3IoaW50IGk9MDtpPG47aSsrKSAKI2RlZmluZSBGIGZpcnN0IAojZGVmaW5lIFMgc2Vjb25kIAojZGVmaW5lIHBiIHB1c2hfYmFjayAKCnVzaW5nIG5hbWVzcGFjZSBzdGQ7Cgp2b2lkIHRlc3QoKXsKCWxsIG4sbSx0OwoJY2luPj5uPj5tPj50OwoJbGwgY2FwID0gbjsKCWJvb2wgZmxhZyA9IHRydWU7CglsbCBwcmV2ID0gMDsKCWYoaSxtKXsKCQlsbCBhLGI7CgkJY2luPj5hPj5iOwoJCW4gPSBuIC0gKGEtcHJldik7CgkJaWYobjw9MClmbGFnID0gZmFsc2U7CgkJbiA9IG1pbihjYXAsbiArIChiLWEpKTsKCQlwcmV2ID0gYjsKCX0KCW4gPSBuIC0gKHQtcHJldik7CglpZihuPD0wKWZsYWcgPSBmYWxzZTsKCWlmKGZsYWcpY291dDw8Illlc1xuIjsKCWVsc2UgY291dDw8Ik5vXG4iOwoJCn0KCmludCBtYWluKCl7CglzdGQ6Omlvczo6c3luY193aXRoX3N0ZGlvKGZhbHNlKTsKCWNpbi50aWUoMCk7Cgljb3V0LnRpZSgwKTsKCWludCB0ZXN0cz0xOwoJLy8gY2luPj50ZXN0czsKCXdoaWxlKHRlc3RzLS0pewoJCXRlc3QoKTsKCX0KfQo=