#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, t1, t2, k, a, b;
  cin >> n >> t1 >> t2 >> k;
  double p1, p2;
  vector<pair<double, int> > v;
  for (int i = 0; i < n; i++) {
    cin >> a >> b;
    p1 = a * t1 / (double)100 * (100 - k) + t2 * b;
    p2 = b * t1 / (double)100 * (100 - k) + t2 * a;
    if (p1 >= p2)
      v.push_back(make_pair(p1, -i));
    else
      v.push_back(make_pair(p2, -i));
  }
  sort((v).rbegin(), (v).rend());
  cout << setprecision(2);
  cout << setiosflags(ios::fixed);
  for (int i = 0; i < ((int)v.size()); i++) {
    cout << v[i].second * -1 + 1 << " " << v[i].first << endl;
  }
}
