#include <bits/stdc++.h>

using namespace std;
struct zliljudi
{
    long long int a;
    double b;
};
bool compare(const zliljudi &k1,const zliljudi &k2)
{
    return k1.b>k2.b;
}
int main()
{
    std::ios::sync_with_stdio(false);
    int n;
    cin>>n;
    vector <zliljudi> arr;
    for(int i=0;i<n;i++)
    {
        long long int x; double y;
        cin>>x>>y;
        arr.push_back(zliljudi());
        arr[i].a=x;
        arr[i].b=y;
    }
    sort(arr.begin(),arr.end(),compare);
    double sum=0;
    double drzava=0;
    for(int i=0;i<n;i++)
    {
        sum+=arr[i].a;
        double k=sum*arr[i].b/100.00;
        if(k>drzava)
        {
            drzava =k;
        }
    }
    cout<<fixed<<drzava;
    return 0;
}