#include <bits/stdc++.h>

#include <vector>
// #include <atcoder/all>
// using namespace atcoder;

using namespace std;
using ll = long long;

int main() {
    ios::sync_with_stdio(false);
    std::cin.tie(nullptr);

    int N, M, T;
    cin >> N >> M >> T;

    vector<ll> A(M);
    vector<ll> B(M);
    for (int i = 0; i < M; i++) {
        cin >> A[i] >> B[i];
    }

    int capa = N;
    capa -= A[0];
    if (capa <= 0) {
        cout << "No" << endl;
        return 0;
    }
    capa += B[0] - A[0];
    capa = min(capa, N);
    // cout << capa << endl;
    for (int i = 1; i < M; i++) {
        capa -= A[i] - B[i - 1];
        if (capa <= 0) {
            cout << "No" << endl;
            return 0;
        }
        // cout << capa << endl;
        capa += B[i] - A[i];
        capa = min(capa, N);
        // cout << capa << endl;
    }
    capa -= T - B[M - 1];
    if (capa <= 0) {
        cout << "No" << endl;
        return 0;
    }
    cout << "Yes" << endl;

    return 0;
}

#include <bits/stdc++.h>
#define ll long long
#define sz(x) (int)(x).size()
using namespace std;
//mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
//uniform_int_distribution<int>(1000,10000)(rng)

ll binpow(ll a, ll b)
{
    ll res = 1;
    while (b > 0)
    {
        if (b & 1)
            res = res * a;
        a = a * a;
        b >>= 1;
    }
    return res;
}

ll gcd(ll a,ll b)
{
    if (b==0) return a;
    return gcd(b,a%b);
}

string to_upper(string a)
{
    for (int i=0;i<(int)a.size();++i) if (a[i]>='a' && a[i]<='z') a[i]-='a'-'A';
    return a;
}
 
string to_lower(string a)
{
    for (int i=0;i<(int)a.size();++i) if (a[i]>='A' && a[i]<='Z') a[i]+='a'-'A';
    return a;
}

int main()
{
    ios_base::sync_with_stdio(0); cin.tie(0);
    int n,m,t,x,y,c;
    cin>>n>>m>>t;
    y=0;
    c=n;
    while (m--)
    {
        cin>>x;
        c-=(x-y);
        if (c<=0)
        {
            cout<<"No";
            return 0;
        }
        cin>>y;
        c=min(c+y-x,n);
    }
    c-=(t-y);
    if (c<=0)
        cout<<"No";
    else cout<<"Yes";
    return 0;
}