main(j,D,X){ gets(&D); double T,a; for(;scanf("%d%d%lf",&D,&X,&T) != -1; ) { for(a=j=1;j