#include <bits/stdc++.h>
using namespace std;
const int INF = 1 << 29;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(NULL);
  int n;
  double a, d;
  cin >> n >> a >> d;
  pair<int, double> p[n];
  for (int i = 0; i < (n); i++) cin >> p[i].first >> p[i].second;
  sort(p, p + n);
  double prev = 0;
  for (int i = 0; i < (n); i++) {
    double curr = 0;
    if (p[i].second * p[i].second - 2 * a * d >= 0) {
      curr = p[i].first + sqrt((2.0 * d) / a);
    } else {
      curr = p[i].first;
      curr += p[i].second / a;
      curr += (d - (p[i].second * p[i].second) / (2 * a)) / p[i].second;
    }
    if (curr < prev) {
      printf("%.10lf\n", prev);
    } else {
      printf("%.10lf\n", curr);
      prev = curr;
    }
  }
  return 0;
}
