#include <bits/stdc++.h>
using namespace std;
int main() {
  double t1, t2, s, v1, v2, a, vmax, t0, s1, s2, before;
  int i, j, m, n, k;
  while (cin >> k >> a >> s) {
    before = 0;
    while (k--) {
      cin >> t0 >> vmax;
      t1 = vmax / a;
      if (a * t1 * t1 / 2 < s) {
        s1 = a * t1 * t1 / 2;
        s2 = s - s1;
        t2 = s2 / vmax;
        if (t0 + t1 + t2 < before)
          printf("%.10lf\n", before);
        else
          printf("%.10lf\n", t0 + t1 + t2);
        before = max(t0 + t1 + t2, before);
      } else {
        if (sqrt(2 * s / a) + t0 < before)
          printf("%.10lf\n", before);
        else
          printf("%.10lf\n", sqrt(2 * s / a) + t0);
        before = max(before, sqrt(2 * s / a) + t0);
      }
    }
  }
}
