#include<iostream>
#include<cmath>
using namespace std;
int main(){
    int n;
    while(cin>>n,n){
        double best=1000000,num;
        for(int i=0;i<n;i++){
            int x;
            double y,z;
            cin>>x>>y>>z;
            y/=100;
            if(fabs(z/(y*y)-22)<best)best = fabs(z/(y*y)-22),num = x;
        }
        cout<<num<<endl;
    }
}