#include <bits/stdc++.h>
using namespace std;
vector<pair<double, double>> v;
int main(void) {
  cin.tie(0), iostream::sync_with_stdio(0);
  double n, t1, t2, k;
  cin >> n >> t1 >> t2 >> k;
  k = k / 100;
  for (double i = 1; i <= n; i++) {
    double a, b, height1, height2;
    cin >> a >> b;
    height1 = a * t1 - (a * t1 * k) + b * t2;
    height2 = b * t1 - (b * t1 * k) + a * t2;
    v.push_back(make_pair(max(height1, height2), -1 * i));
  }
  sort(v.begin(), v.end());
  for (int i = v.size() - 1; i >= 0; i--)
    cout << int(v[i].second) * -1 << " " << fixed << setprecision(2)
         << v[i].first << endl;
}
