#include <bits/stdc++.h>
using namespace std;
int _pow[1010];
int dmg[1010];
bool sel[1010];
vector<int> outa1;
vector<int> outa2;
int main() {
  int n, _max, reg;
  scanf("%d%d%d", &n, &_max, &reg);
  for (int i = 0; i < n; i++) {
    scanf("%d%d", _pow + i, dmg + i);
  }
  int chel = _max, attk = 0;
  bool ok = false;
  int time = 0;
  while (true) {
    int phel = chel;
    chel -= attk;
    chel = min(_max, chel + reg);
    if (chel <= 0) {
      ok = true;
      break;
    }
    int idx = -1;
    for (int t = 0; t < n; t++) {
      if (sel[t] || 100 * chel > _pow[t] * _max) continue;
      if (idx == -1 || dmg[t] > dmg[idx]) idx = t;
    }
    if (idx == -1 && chel >= phel) break;
    if (idx != -1) {
      sel[idx] = true;
      attk += dmg[idx];
      outa1.push_back(time);
      outa2.push_back(idx + 1);
    }
    time++;
  }
  if (!ok)
    puts("NO");
  else {
    puts("YES");
    printf("%d %d\n", time, outa1.size());
    for (int i = 0; i < outa1.size(); i++) {
      printf("%d %d\n", outa1[i], outa2[i]);
    }
  }
  return 0;
}
