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