#include<stdio.h>
using namespace std;

int main(){
	int s[50] = {};
	double w[50] = {};
	double h[50] = {};
	int sb[50] = {};
	int i = 0;
	int j = 0;
	while (scanf("%d,%f,%f", s[i], w[i], h[i])) {
		if (w[i] / (h[i] * h[i])) {
			sb[j] = s[i];
			j++;
		}
		i++;
	}
	for (int k = 0; k < j; k++) {
		printf("%d", sb[k]);
	}
	
	
    return 0;
}