#include <iostream>
#include <cmath>
using namespace std;

int main(){
	double a,b;
	int n;
	while(cin >> n && n){
		pair<double,int> e = make_pair(1e9,1e9);
		for(int i = 0 ; i < n ; i++){
			int a;
			double b;
			double c;
			cin >> a >> b >> c;
			b /= 100;
			double f = fabs(22-c/b/b);
			if( e > make_pair(f,a) ){
				e = make_pair(f,a);
			}
		}
		cout << e.second << endl;
	}
}