#include <bits/stdc++.h>
const double eps = 1e-9;
const int int_inf = 2000000000;
const long long i64_inf = 1000000000000000000LL;
const double pi = acos(-1.0);
using namespace std;
int n;
double a, d;
double t[100500];
double v[100500];
double ans[100500];
double go(double v) {
  double res;
  double second = (v * v) / (2.0 * a);
  res = v / a;
  if (d < second + eps)
    res = sqrt(2 * d / a);
  else
    res += (d - second) / v;
  return res;
}
int main() {
  cin >> n >> a >> d;
  for (int i = 0; i < (int)n; i++) scanf("%lf%lf", &t[i], &v[i]);
  ans[0] = t[0] + go(v[0]);
  printf("%.10lf\n", ans[0]);
  for (int i = 1; i < (int)n; i++) {
    if (t[i] + go(v[i]) + eps > ans[i - 1])
      ans[i] = t[i] + go(v[i]);
    else
      ans[i] = ans[i - 1];
    printf("%.10lf\n", ans[i]);
  }
  return 0;
}
