#include <bits/stdc++.h>
using namespace std;
int n;
double a, s, s1, s2, t1, t2;
double t0, v;
int main() {
  double tm = 0;
  scanf("%d%lf%lf", &n, &a, &s);
  for (int i = 0; i < n; i++) {
    scanf("%lf%lf", &t0, &v);
    t1 = v / a;
    s1 = 0.5 * a * t1 * t1;
    if (s1 > s) {
      t1 = sqrt(2 * s / a);
      t2 = 0;
    } else {
      s2 = s - s1;
      t2 = s2 / v;
    }
    if (t0 + t1 + t2 >= tm) {
      tm = t0 + t1 + t2;
    }
    printf("%.10lf\n", tm);
  }
  return 0;
}
