#include <bits/stdc++.h>
double abc(double v, double a, double d) {
  double t, s;
  t = v / a;
  s = a * t * t / 2;
  if (s >= d) {
    t = sqrt((2 * d) / a);
    return t;
  } else {
    t = t + ((d - s) / v);
    return t;
  }
}
int main() {
  double n, a, d = 0, l;
  long int x, i;
  scanf("%lf %lf %lf", &n, &a, &d);
  x = (long int)n;
  double t[x], v[x], p[x];
  for (int i = 1; i <= x; i++) {
    scanf("%lf %lf", &t[i], &v[i]);
  }
  i = 1;
  while (i <= x) {
    if (i == 1) {
      l = abc(v[i], a, d);
      l = l + t[i];
      p[i] = l;
      printf("%lf\n", l);
    } else {
      l = abc(v[i], a, d);
      l = l + t[i];
      if (l > p[i - 1]) {
        p[i] = l;
        printf("%lf\n", l);
      } else {
        p[i] = p[i - 1];
        printf("%lf\n", p[i]);
      }
    }
    i++;
  }
  return 0;
}
