#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  int n, t1, t2, k, a, b;
  cin >> n >> t1 >> t2 >> k;
  multimap<double, int, greater<double>> m;
  double s1, s2, s;
  for (int i = 1; i <= n; i++) {
    cin >> a >> b;
    s1 = (double)((a * t1) - ((k / 100.0) * t1 * a) + (b * t2));
    s2 = (double)((b * t1) - ((k / 100.0) * t1 * b) + (a * t2));
    s = max(s1, s2);
    m.insert(make_pair(s, i));
  }
  for (auto i = m.begin(); i != m.end(); ++i) {
    cout << i->second << " " << fixed << setprecision(2) << i->first << endl;
  }
  return 0;
}
