#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  double a, d;
  cin >> n >> a >> d;
  vector<double> t(n), v(n);
  for (size_t i = 0; i < t.size(); ++i) cin >> t[i] >> v[i];
  vector<double> t_arr(n);
  for (size_t i = 0; i < t_arr.size(); ++i) {
    double t_haste = v[i] / a;
    double s_haste = a * pow(t_haste, 2) / 2;
    t_arr[i] = t[i];
    if (s_haste >= d)
      t_arr[i] += sqrt(2 * d / a);
    else
      t_arr[i] += t_haste + (d - s_haste) / v[i];
  }
  for (size_t i = 1; i < t_arr.size(); ++i)
    if (t_arr[i] < t_arr[i - 1]) t_arr[i] = t_arr[i - 1];
  for (size_t i = 0; i < t_arr.size(); ++i) printf("%.10lf\n", t_arr[i]);
  return 0;
}
