#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.sync_with_stdio(false);
  int n, t1, t2, K;
  cin >> n >> t1 >> t2 >> K;
  double k = (100 - K) / 100.0;
  vector<pair<int, double> > v(n);
  for (int i = 0; i < n; i++) {
    int x, y;
    cin >> x >> y;
    double d = max(t1 * k * x + t2 * y, t1 * k * y + t2 * x);
    v[i].first = i + 1;
    v[i].second = d;
  }
  sort(v.begin(), v.end(),
       [=](const pair<int, double>& f, const pair<int, double>& s) {
         if (fabs(f.second - s.second) < numeric_limits<double>::epsilon())
           return f.first < s.first;
         return !(f.second < s.second);
       });
  for (int i = 0; i < n; ++i) {
    cout << v[i].first << ' ' << fixed << setprecision(2) << v[i].second
         << endl;
  }
}
