#include <bits/stdc++.h>
using namespace std;
bool sortbysecdesc(const pair<int,long double> &a,
const pair<int,long double> &b)
{
return a.second>b.second;
}
int main()
{
long double n , t1 , t2 , p , x , y , sum , q , w;
cin>>n>>t1>>t2>>p ;
vector< pair <int , long double> >z;
for(int i = 1 ; i <= n ; ++i)
{
cin>>x>>y ;
q = (y * t1) - ((y * t1) * (p / 100.00)) + (x / 1.00 * (t2/1.00));
w = (x * t1) - ((x * t1) * (p / 100.00)) + (y / 1.00 * (t2 / 1.00));
sum = max(q , w);
z.push_back(make_pair(i , sum));
}
sort(z.begin(), z.end(), sortbysecdesc);
for(int i = 0 ; i < n ; ++i)
{
cout<<z[i].first<<" ";
cout<<fixed<<setprecision(2)<<z[i].second<<endl;
}
return 0 ;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+Cgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKYm9vbCBzb3J0YnlzZWNkZXNjKGNvbnN0IHBhaXI8aW50LGxvbmcgZG91YmxlPiAmYSwKICAgICAgICAgICAgICAgICAgIGNvbnN0IHBhaXI8aW50LGxvbmcgZG91YmxlPiAmYikKewogICAgICAgcmV0dXJuIGEuc2Vjb25kPmIuc2Vjb25kOwp9CgppbnQgbWFpbigpCnsKICAgIGxvbmcgZG91YmxlIG4gLCB0MSAsIHQyICwgcCAsIHggLCB5ICwgc3VtICwgcSAsIHc7CiAgICBjaW4+Pm4+PnQxPj50Mj4+cCA7CgogICAgdmVjdG9yPCBwYWlyIDxpbnQgLCBsb25nIGRvdWJsZT4gPno7CgogICAgZm9yKGludCBpID0gMSA7IGkgPD0gbiA7ICsraSkKICAgIHsKICAgICAgIGNpbj4+eD4+eSA7CiAgICAgICBxID0gKHkgKiB0MSkgLSAoKHkgKiB0MSkgKiAocCAvIDEwMC4wMCkpICsgKHggLyAxLjAwICogKHQyLzEuMDApKTsKICAgICAgIHcgPSAoeCAqIHQxKSAtICgoeCAqIHQxKSAqIChwIC8gMTAwLjAwKSkgKyAoeS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