#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, t1, t2, k, temp1, temp2;
  double h1, h2;
  vector<pair<double, int>> v;
  cin >> n >> t1 >> t2 >> k;
  for (int i = 0; i < n; i++) {
    cin >> temp1 >> temp2;
    h1 = temp1 * t1;
    h2 = temp2 * t1;
    h1 -= double((h1 * k) / 100);
    h2 -= double((h2 * k) / 100);
    h1 += temp2 * t2;
    h2 += temp1 * t2;
    v.push_back(make_pair(max(h1, h2), -(i + 1)));
  }
  sort(v.begin(), v.end(), greater<pair<double, int>>());
  for (int i = 0; i < v.size(); i++) {
    cout << -v[i].second << " ";
    cout << setprecision(2) << fixed << v[i].first << endl;
  }
}
