#include <bits/stdc++.h>
using namespace std;
int n, a, d;
double t[100005], v[100005];
double ans[100005];
double cal_time(int i) {
  double s = d;
  double t1 = sqrt((2.0 / a) * d);
  double t2 = v[i] / a;
  if (t2 >= t1) {
    return t1;
  }
  s -= 0.5 * a * t2 * t2;
  return t2 + (s / (double)v[i]);
}
int main() {
  scanf("%d", &n);
  ;
  scanf("%d", &a);
  ;
  scanf("%d", &d);
  ;
  for (int i = 0; i < n; i++) {
    scanf("%lf %lf", &t[i], &v[i]);
  }
  ans[0] = t[0] + cal_time(0);
  for (int i = 1; i < n; i++) {
    double temp = cal_time(i);
    if (t[i] + temp >= ans[i - 1])
      ans[i] = t[i] + temp;
    else
      ans[i] = ans[i - 1];
  }
  for (int i = 0; i < n; i++) printf("%.9f\n", ans[i]);
}
