#include <bits/stdc++.h>
int main(int argc, char* argv[]) {
  int n, a, d, i, t1, t2, v1, v2;
  double time1, time2;
  scanf("%d%d%d", &n, &a, &d);
  scanf("%d%d", &t1, &v1);
  if (((double(v1) / a) * (double(v1) / a) * a / 2.0) < d)
    time1 = double(v1) / a + t1 + (d - (double(v1) * v1 / a) / 2.0) / v1;
  else
    time1 = sqrt(2 * double(d) / a) + t1;
  printf("%.10lf\n", time1);
  for (i = 1; i < n; i++) {
    scanf("%d%d", &t2, &v2);
    if (((double(v2) / a) * (double(v2) / a) * a / 2.0) < d)
      time2 = double(v2) / a + t2 + (d - (double(v2) * v2 / a) / 2.0) / v2;
    else
      time2 = sqrt(2 * double(d) / a) + t2;
    if (time2 > time1) time1 = time2;
    printf("%.10lf\n", time1);
  }
  return 0;
}
