#include <bits/stdc++.h>
#define ll long long
#define ld long double
#define endl "\n"
using namespace std;

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(0);

    int n,m,t;
    cin >> n >> m >> t;
    pair<int,int> arr[m];
    for (int i=0;i<=m-1;i++)
    {
        cin >> arr[i].first >> arr[i].second;
    }

    int x=n;
    int time=0;
    bool ans=false;
    for (int i=0;i<=m-1;i++)
    {
        int a=arr[i].first-time;
        x=max(x-a,0);
        if (x==0)
        {
            ans=true;
        }
        int b=arr[i].second-arr[i].first;
        x=min(n,x+b);

        time=arr[i].second;
    }

    x=max(0,x-(t-time));
    if (x==0)
    {
        ans=true;
    }

    if (ans)
    {
        cout << "No" << endl;
    }
    else
    {
        cout << "Yes" << endl;
    }

    return 0;
}
#include<iostream>
using namespace std;

int main()
{
   int n, m, t;
   bool yee=true;
   cin>>n>>m>>t;
   int r=0;
   int last=0;
   int  mx=n;
      while(m--)
      {
		int a,b;
          cin>>a>>b;
           int now=a-last;
           n-=now;
           if(n<=0) {yee=false;}
           n=min(mx,(n+b-a));
           last=b;
      }
     // cout<<n<<" "<<t-last<<endl;
      n-=(t-last);
    // cout<<n<<endl;
      if(yee and n>0){cout<<"Yes"<<endl;}
      else cout<<"No"<<endl;
}
