#include <bits/stdc++.h>
using namespace std;
int n, a, s;
double tmax;
int main() {
  scanf("%d%d%d", &n, &a, &s);
  for (int i = 1; i <= n; i++) {
    int st, v;
    scanf("%d%d", &st, &v);
    double vmt = double(v) / a, t;
    if (0.5 * a * vmt * vmt > s)
      t = sqrt(2.0 * s / a);
    else
      t = vmt + (s - 0.5 * a * vmt * vmt) / v;
    t += st;
    tmax = max(t, tmax);
    printf("%.10lf\n", tmax);
  }
  return 0;
}
