#include <bits/stdc++.h>
using namespace std;
static const double EPS = 1e-8;
int main() {
  istream &fin = cin;
  int N, mx, reg;
  fin >> N >> mx >> reg;
  vector<vector<int> > scr(N, vector<int>(3));
  for (int i = 0; i < N; i++) {
    fin >> scr[i][1] >> scr[i][0];
    scr[i][2] = i + 1;
  }
  sort(scr.begin(), scr.end(), greater<vector<int> >());
  int creg = 0;
  vector<int> use(N, 0);
  int sec = 0;
  int hlt = mx;
  vector<int> vt, vn;
  while (1) {
    hlt += creg;
    hlt += reg;
    if (hlt <= 0) break;
    if (hlt > mx) hlt = mx;
    int prc = hlt * 100LL / mx;
    if (hlt * 100LL % mx) prc++;
    bool ok = false;
    for (int i = 0; i < N; i++) {
      if (use[i]) continue;
      if (scr[i][1] < prc) continue;
      creg -= scr[i][0];
      use[i] = 1;
      vt.push_back(sec);
      vn.push_back(scr[i][2]);
      ok = true;
      break;
    }
    if (!ok && reg + creg >= 0) {
      cout << "NO" << endl;
      return 0;
    }
    sec++;
  }
  cout << "YES" << endl << sec << " " << vt.size() << endl;
  for (int i = 0; i < (int)vt.size(); i++) {
    cout << vt[i] << " " << vn[i] << endl;
  }
}
