#include<bits/stdc++.h>
#define FOR(i, a, b) for(int i=(a);i<(b);++i)
#define REP(i,n) FOR(i, 0, n)
#define all(x) (x).begin(),(x).end()
const int INF = 1e9+1;
using namespace std;
using ll = long long;
using p = pair<int, int>;
using v = vector<int>;

int main(){
  int N, M, T;
  cin >> N >> M >> T;
  v A(M), B(M);
  int n = N;
  int t = 0;
  REP(i, M) cin >> A[i] >> B[i];
  REP(i, M) {
    n -= (A[i]-t);
    if (n <= 0) {
      cout << "No" << endl;
      return 0;
    }
    n = min(N, n+(B[i]-A[i]));
    t = B[i];
  }
  n -= T-t;
  if (n <= 0) {
    cout << "No" << endl;
    return 0;
  }
  cout << "Yes" << endl;
  return 0;
}
/*
ID: alec3
LANG: C++14
PROG:
/*

*/

#include <bits/stdc++.h>

#define check(x) cout<<(#x)<<": "<<x<<" " << endl;
#define io ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define ss second
#define ff first
#define pb push_back
#define lb lower_bound
#define ub upper_bound
#define ld long double
#define all(c) (c).begin(), (c).end()
#define FOR(i, a, b) for (int i = a; i < b; i++)
#define mp make_pair
#define line cout << "--------------" << endl;

typedef long long ll;
typedef unsigned long long ull;

int pct(int x) { return __builtin_popcount(x); }

using namespace std;

void setIO(string name) {
	freopen((name+".in").c_str(),"r",stdin);
	freopen((name+".out").c_str(),"w",stdout);
	ios_base::sync_with_stdio(0);
}

int main()
{
    io;
    int n, x;
    cin >> n >> x;
    string s; cin >> s;


    ll points = x;
    for (int i = 0; i < n; i++){
        if (s[i] == 'x'){
            if (points > 0)
                points --;
        }
        else
            points ++;
    }
    cout << points << endl;


    return 0;
}
