#include <bits/stdc++.h>
using namespace std;
int pows[2000];
int dmg[2000];
int from[2000];
bool used[2000];
int mx, reg;
int curdmg;
int main() {
  int n;
  cin >> n >> mx >> reg;
  int cur = mx;
  int prev;
  int i, j, k;
  for (i = 0; i < n; ++i) {
    cin >> pows[i] >> dmg[i];
    from[i] = mx * pows[i] / 100;
  }
  int num, mxdmg;
  vector<int> svit, times;
  curdmg = 0;
  int time = 0;
  while (1) {
    cur -= curdmg;
    cur += reg;
    if (cur > mx) cur = mx;
    mxdmg = -1;
    for (i = 0; i < n; ++i)
      if (!used[i] && from[i] >= cur && dmg[i] > mxdmg) {
        num = i;
        mxdmg = dmg[i];
      }
    if (cur <= 0) {
      cout << "YES\n" << time << ' ' << svit.size() << endl;
      for (i = 0; i < svit.size(); ++i) {
        cout << times[i] << ' ' << svit[i] << endl;
      }
      return 0;
    }
    if (mxdmg != -1) {
      times.push_back(time);
      svit.push_back(num + 1);
      used[num] = true;
      curdmg += mxdmg;
    }
    if (mxdmg == -1) {
      if (reg >= curdmg) {
        cout << "NO\n";
        return 0;
      }
    }
    ++time;
  }
  return 0;
}
