#include <bits/stdc++.h>
using namespace std;
double a, d, ans[100005];
pair<pair<double, double>, int> v[100005];
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  ios_base::sync_with_stdio(0);
  int n;
  cin >> n >> a >> d;
  for (int i = 0; i < n; i++)
    cin >> v[i].first.first >> v[i].first.second, v[i].second = i;
  sort(v, v + n);
  for (int i = 0; i < n; i++) {
    double tot = v[i].first.first, t = v[i].first.second / a,
           x = (a * t * t) / 2.0;
    if (x > d)
      tot += sqrtl((2.0 * d) / a);
    else {
      tot += t;
      tot += (d - x) / v[i].first.second;
    }
    ans[v[i].second] = max(ans[v[i - 1].second], tot);
  }
  cout << fixed << setprecision(10);
  for (int i = 0; i < n; i++) cout << ans[i] << endl;
  return 0;
}
