#include <bits/stdc++.h>
using namespace std;
const int size = 100001;
double t[size];
double t_arr[size];
int v[size];
double a, d;
double dur(double v) {
  double s0 = 0.5 * v * v / a;
  if (d > s0)
    return d / v + 0.5 * v / a;
  else
    return sqrt(2.0 * d / a);
}
int main() {
  int n;
  cin >> n >> a >> d;
  for (int i = 0; i < n; ++i) cin >> t[i] >> v[i];
  t_arr[0] = t[0] + dur(v[0]);
  for (int i = 1; i < n; ++i) t_arr[i] = max(t[i] + dur(v[i]), t_arr[i - 1]);
  for (int i = 0; i < n; ++i) cout << t_arr[i] << endl;
  return 0;
}
