#include <bits/stdc++.h>
using namespace std;
int n, a, d;
int t[1000000], v[1000000];
double ret[1000000];
int main() {
  ios_base::sync_with_stdio(0);
  cin >> n >> a >> d;
  for (int i = 0; i < (int)(n); i++) cin >> t[i] >> v[i];
  for (int i = 0; i < (int)(n); i++) {
    double tms = (double)v[i] / a;
    double x = 0.5 * a * tms * tms;
    if (d > x) {
      ret[i] = t[i] + tms + (d - x) / v[i];
    } else {
      ret[i] = t[i] + sqrt(2.0 * d / a);
    }
  }
  for (int i = (int)(1); i < (int)(n); i++) ret[i] = max(ret[i], ret[i - 1]);
  cout << fixed << setprecision(5);
  for (int i = 0; i < (int)(n); i++) cout << ret[i] << endl;
  return 0;
}
