#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i;
  double a, d, t, v, s, p[100005];
  while (scanf("%d%lf%lf", &n, &a, &d) != EOF) {
    for (i = 0; i < n; i++) {
      scanf("%lf%lf", &t, &v);
      s = v * v / (2 * a);
      if (d >= s) {
        p[i] = t + v / a + (d - s) / v;
      } else {
        p[i] = t + sqrt(2 * d / a);
      }
    }
    printf("%.10lf\n", p[0]);
    for (i = 1; i < n; i++) {
      if (p[i] < p[i - 1]) {
        printf("%.10lf\n", p[i - 1]);
        p[i] = p[i - 1];
      } else
        printf("%.10lf\n", p[i]);
    }
  }
  return 0;
}
