#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  int n;
  long double a, d;
  cin >> n >> a >> d;
  long long int v[n], t[n];
  long double ans[n];
  for (int i = 0; i <= n - 1; i++) {
    cin >> t[i] >> v[i];
  }
  long double di = (long double)((v[0] * v[0]) / (2.0 * a));
  if (di > d) {
    ans[0] = t[0] + (long double)sqrt((2.0 * d) / a);
  } else {
    long double rem = d - di;
    long double ti = (long double)(v[0] / a);
    ans[0] = t[0] + ti + (long double)(rem / v[0]);
  }
  for (int i = 1; i <= n - 1; i++) {
    di = (long double)((v[i] * v[i]) / (2.0 * a));
    if (di > d) {
      long double temp = (long double)sqrt((2.0 * d) / a);
      if (temp + t[i] < ans[i - 1]) {
        ans[i] = ans[i - 1];
      } else {
        ans[i] = t[i] + temp;
      }
    } else {
      long double rem = d - di;
      long double ti = (long double)(v[i] / a);
      long double temp = ti + (long double)(rem / v[i]);
      if (temp + t[i] < ans[i - 1]) {
        ans[i] = ans[i - 1];
      } else {
        ans[i] = t[i] + temp;
      }
    }
  }
  for (int i = 0; i <= n - 1; i++)
    cout << fixed << setprecision(6) << ans[i] << endl;
  return 0;
}
