#include <bits/stdc++.h>
using namespace std;
double t[100000];
double v[100000];
double z[100000];
int main() {
  int n;
  double a, d;
  double m;
  cin >> n >> a >> d;
  for (int i = 0; i < n; ++i) cin >> t[i] >> v[i];
  for (int i = 0; i < n; ++i) {
    if (d < v[i] * v[i] / (2 * a)) {
      z[i] = t[i] + sqrt(2 * d / a);
    } else {
      z[i] = t[i] + v[i] / a + (d - v[i] * v[i] / (2 * a)) / v[i];
    }
  }
  m = z[0];
  for (int i = 1; i < n; ++i) {
    if (z[i] <= m)
      z[i] = m;
    else
      m = z[i];
  }
  cout.setf(cout.fixed);
  cout.precision(10);
  for (int i = 0; i < n; ++i) cout << z[i] << "\n";
  return 0;
}
