#include <stdio.h>
int main() 
{   FILE*fp=stdin;
    if(fp==NULL)return 1;

    double time,voltage,last_v=0.0;
    int count=0;
    printf("回数\t時間[s]\t電圧[V]\n");

    while(fscanf(fp,"%lf,%lf",&time,&voltage)!=EOF) 
    {   if(last_v>3.5&&last_v>voltage) 
        {  count++;
            printf("%d\t%.2f\t%.2f\n",count,time,last_v);
            for(int j=0;j<50;j++)
           {
                fscanf(fp,"%lf,%lf",&time,&voltage);
            }
        }
        last_v=voltage; 
    }
    fclose(fp);
    return 0;
}

