#include <cstdio>
#include <vector>
#include <map>
using namespace std;

double IMB(double w,double t){
	return w/t*t;
}

int main(){
	int No;
	double w,t;
	vector<int> vc;
	map<int,double> f;

	while( ~scanf("%d,%lf,%lf", &No , &w , &t ) ){
		//printf("%d %f %f\n" , No , w , t );
		//if( No == -1 ) break;
		vc.push_back( No );
		f[ No ] = IMB( w, t );
	}
	for(int i=0 ; i<vc.size() ; ++i )
		if( f[ vc[i] ] >= 25.0 )
			printf("%d\n", i );
}