/*Rabbi Zidni Eilmaa*/
// We are open. We are looking for SHOTRUJ...
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef long double ld;
typedef string str;
typedef vector<ll> vll;
typedef vector<pair<ll, ll>> vpl;
typedef set<ll> sll;
typedef map<ll, ll> mll;
typedef pair<int, int> pint;
typedef pair<ll, ll> pll;
double pi = acos(-1.0);
#define debug(x) cout << #x << " " << x << endl;
#define loop for (int i = 1; i <= n; i++)
#define all(a) (a).begin(), (a).end()
#define min3(a, b, c) min(a, min(b, c))
#define max3(a, b, c) max(a, max(b, c))
#define min4(a, b, c, d) min(a, min(b, min(c, d)))
#define max4(a, b, c, d) max(a, max(b, max(c, d)))
#define forn(i, n) for (int i = 1; i <= (int)n; i++)
#define ANS cout << ans << "\n"
#define PY cout << "YES\n"
#define PN cout << "NO\n"
int mod = 1e9 + 7;
void init()
{
}
bool comp(pair<ll, ll> a, pair<ll, ll> b) {
if(a.first == b.first) return a.second <= b.second;
return a.first <= b.first;
}
void solve()
{
int n;
cin >> n;
ll d, t;
cin >> d >> t;
vector<pair<ll, ll>> vc;
while(n--) {
ll x, h;
cin >> x >> h;
if(x < d) vc.push_back({x, h});
}
sort(vc.begin(), vc.end(), comp);
__int128_t time = 0;
ll pos = 0;
for(auto pr: vc) {
ll x = pr.first;
ll h = pr.second;
time += __int128_t(x - pos);
pos = x - h;
}
time += (d - pos);
cout << ((time <= t)? "YES\n" : "NO\n");
return;
}
int32_t main()
{
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
init();
int t = 1;
// cin >> t;
for (int i = 1; i <= t; i++)
{
// cout << "Case " << i << ": ";
solve();
}
return 0;
}
LypSYWJiaSBaaWRuaSBFaWxtYWEqLwoKLy8gV2UgYXJlIG9wZW4uIFdlIGFyZSBsb29raW5nIGZvciBTSE9UUlVKLi4uCgojaW5jbHVkZSA8Yml0cy9zdGRjKysuaD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCnR5cGVkZWYgbG9uZyB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Vjb25kIDw9IGIuc2Vjb25kOwogICAgcmV0dXJuIGEuZmlyc3QgPD0gYi5maXJzdDsKfQoKdm9pZCBzb2x2ZSgpCnsKICAgIGludCBuOwogICAgY2luID4+IG47CiAgICBsbCBkLCB0OwogICAgY2luID4+IGQgPj4gdDsKICAgIHZlY3RvcjxwYWlyPGxsLCBsbD4+IHZjOwogICAgd2hpbGUobi0tKSB7CiAgICAgICAgbGwgeCwgaDsKICAgICAgICBjaW4gPj4geCA+PiBoOwogICAgICAgIGlmKHggPCBkKSB2Yy5wdXNoX2JhY2soe3gsIGh9KTsKICAgIH0KCiAgICBzb3J0KHZjLmJlZ2luKCksIHZjLmVuZCgpLCBjb21wKTsKICAgIF9faW50MTI4X3QgdGltZSA9IDA7CiAgICBsbCBwb3MgPSAwOwogICAgZm9yKGF1dG8gcHI6IHZjKSB7CiAgICAgICAgbGwgeCA9ICBwci5maXJzdDsKICAgICAgICBsbCBoID0gcHIuc2Vjb25kOwoKICAgICAgICB0aW1lICs9IF9faW50MTI4X3QoeCAtIHBvcyk7CiAgICAgICAgcG9zID0geCAtIGg7CiAgICB9CiAgICB0aW1lICs9IChkIC0gcG9zKTsKCiAgICBjb3V0IDw8ICgodGltZSA8PSB0KT8gIllFU1xuIiA6ICJOT1xuIik7CgogICAgcmV0dXJuOwp9CgppbnQzMl90IG1haW4oKQp7CiAgICBpb3NfYmFzZTo6c3luY193aXRoX3N0ZGlvKDApOwogICAgY2luLnRpZSgwKTsKICAgIGNvdXQudGllKDApOwoKICAgIGluaXQoKTsKICAgIGludCB0ID0gMTsKICAgIC8vIGNpbiA+PiB0OwogICAgZm9yIChpbnQgaSA9IDE7IGkgPD0gdDsgaSsrKQogICAgewogICAgICAgIC8vIGNvdXQgPDwgIkNhc2UgIiA8PCBpIDw8ICI6ICI7CiAgICAgICAgc29sdmUoKTsKICAgIH0KCiAgICByZXR1cm4gMDsKfQ==