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

int main(){

	int n;
	cin>>n;
	vector<int> s(n);
	vector<double> h(n);
	vector<double> w(n);
	char cnm[2];
	
	for(int i=0;i<n;i++){
		double BMI;
		cin>>s[i]>>cnm[0]>>w[i]>>cnm[1]>>h[i];
		
		BMI = w[i]/pow(h[i],2);
		
		if(BMI>=25.0){
			cout<<s[i]<<endl;
		}
	}

}