#include <bits/stdc++.h>
using namespace std;
template <typename... T>
void read(T&... args) {
  ((cin >> args), ...);
}
template <typename... T>
void write(T&&... args) {
  ((cout << args << " "), ...);
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  double a, d;
  cin >> n >> a >> d;
  double x, y;
  vector<pair<double, double>> s;
  for (int i = 0; i < (n); i++) {
    cin >> x >> y;
    s.emplace_back(make_pair(x, y));
  }
  sort(s.begin(), s.end());
  double ans[n];
  for (int i = 0; i < (n); i++) {
    if (s[i].second * s[i].second >= 2 * a * d) {
      ans[i] = s[i].first + sqrt(2 * d / a);
    } else {
      ans[i] = s[i].first + s[i].second / a +
               (d - (s[i].second * s[i].second) / (2 * a)) / s[i].second;
    }
    if (i != 0 && ans[i] < ans[i - 1]) ans[i] = ans[i - 1];
    cout << fixed << setprecision(12) << double(ans[i]) << endl;
  }
  return 0;
}
