#include<iostream>
using namespace std;

double f( double a )
{
    if( a > 0 )
        return a;
    else
        return -1 * a;
}

int main()
{
    int n, a[1000];
    double b[1000], c[1000];

    while( cin >> n )
    {
        if( n == 0 )
            break;

        double min = 100000;
        int j = 0;
        for( int i = 0; i < n; i++ )
        {
            cin >> a[i] >> b[i] >> c[i];
            if( min > f( 22 - c[i] / ( b[i] * b[i] / 10000 ) ) )
            {
                min = f( 22 - c[i] / ( b[i] * b[i] / 10000 ) );
                j = i;
            }
        }
        cout << a[j] << endl;
    }


    return 0;
}
