#include <bits/stdc++.h>
using namespace std;
int i, n, t[100005], v[100005], ac, dist;
double rs[100005];
double getTime(double start, double vMax, double dist, double acc) {
  double tmToV = vMax / acc;
  double distV = 0.5 * acc * tmToV * tmToV;
  if (distV >= dist) {
    double t = sqrt(2.0 * dist / acc);
    return start + t;
  }
  return start + (dist - distV) / vMax + tmToV;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin >> n >> ac >> dist;
  for (i = 1; i <= n; ++i) cin >> t[i] >> v[i];
  for (i = 1; i <= n; ++i) rs[i] = getTime(t[i], v[i], dist, ac);
  for (i = 2; i <= n; ++i) rs[i] = max(rs[i], rs[i - 1]);
  for (i = 1; i <= n; ++i) cout << setprecision(5) << fixed << rs[i] << '\n';
  return 0;
}
