#include <bits/stdc++.h>
using namespace std;
int main() {
  double a, s;
  int n;
  scanf("%d%lf%lf", &n, &a, &s);
  double maxn = 0;
  double lim = sqrt(s * 2 / a);
  double ss = s;
  for (int i = 1; i <= n; i++) {
    double t, v;
    scanf("%lf%lf", &t, &v);
    double ti;
    if (lim * a <= v)
      ti = lim + t;
    else {
      ss = s - v * v / (2 * a);
      ti = ss / v + v / a + t;
    }
    if (ti > maxn) maxn = ti;
    printf("%lf\n", maxn);
  }
  return 0;
}
