#include <bits/stdc++.h>
using namespace std;
bool cmp(pair<float, int> p1, pair<float, int> p2) {
  if (p1.first == p2.first) {
    return p1.second < p2.second;
  }
  return p1.first > p2.first;
}
int main() {
  int n;
  double t1, t2, k;
  cin >> n >> t1 >> t2 >> k;
  vector<pair<double, int>> v;
  double l = 0;
  int i = 1;
  while (n--) {
    double a, b;
    cin >> a >> b;
    l = max(a * t1 * ((100 - k) / 100) + b * t2,
            b * t1 * ((100 - k) / 100) + a * t2);
    v.push_back(make_pair(l, (i)));
    i++;
  }
  sort(v.begin(), v.end(), cmp);
  for (auto it = v.begin(); it != v.end(); it++) {
    cout << fixed;
    cout << it->second << " " << setprecision(2) << it->first << endl;
  }
  return 0;
}
