#include <bits/stdc++.h>
using namespace std;
char s[100];
int i, j, S, l, k, Min, b[10], f[100], c[200];
int main() {
  int n;
  double a, d, t, v, past = 0;
  scanf("%d %lf %lf", &n, &a, &d);
  while (n--) {
    scanf("%lf %lf", &t, &v);
    if (v * v / a / 2 >= d)
      t += sqrt(2 * d / a);
    else
      t += v / a + (d - v * v / a / 2) / v;
    if (t < past) t = past;
    printf("%.10lf\n", t);
    past = t;
  }
  return 0;
}
