#include <bits/stdc++.h>
using namespace std;
void debugarr(int* arr, int n) {
  cout << "[";
  for (int i = 0; i < n; i++) cout << arr[i] << " ";
  cout << "]" << endl;
}
struct myclass {
  bool operator()(pair<double, int> i, pair<double, int> j) {
    if (i.first > j.first - 1e-9 && i.first < j.first + 1e-9)
      return i.second < j.second;
    return i.first > j.first;
  }
} myobject;
int main() {
  int n, t1, t2, k;
  scanf("%d", &n);
  scanf("%d", &t1);
  scanf("%d", &t2);
  scanf("%d", &k);
  vector<pair<int, int> > speed;
  for (int i = 0; i < n; i++) {
    int a, b;
    scanf("%d", &a);
    scanf("%d", &b);
    speed.push_back(make_pair(a, b));
  }
  vector<pair<double, int> > final;
  for (int i = 0; i < n; i++) {
    double a = (double)speed[i].first * t1 * (100 - k) / 100 +
               (double)speed[i].second * t2;
    double b = (double)speed[i].second * t1 * (100 - k) / 100 +
               (double)speed[i].first * t2;
    if (a > b)
      final.push_back(make_pair(a, i + 1));
    else
      final.push_back(make_pair(b, i + 1));
  }
  sort(final.begin(), final.end(), myobject);
  for (int i = 0; i < n; i++)
    printf("%d %.2lf\n", final[i].second, final[i].first);
  return 0;
}
