#include<iostream>
using namespace std;
int h, w, maxid, n, b; double maxn = 1000000000.00;
int main() {
	while (true) {
		cin >> n;
		maxn = 1000000000.00;
		for (int i = 0; i < n; i++){
			cin >> b >> h >> w;
			if (maxn >= 10000.00*w / (h*h) - 22.00) {
				maxn = 10000.00*w / (h*h) - 22.00;
				maxid = b;
			}
		}
		cout << maxid << endl;
	}
}