#include <stdio.h>

int main(void) {
    double time[1000], voltage[1000];
    int n = 0;
    double t, v;

    while (scanf("%lf,%lf", &t, &v) == 2) {
        if (t >= 10.0 && t <= 20.0) {
            time[n] = t;
            voltage[n] = v;
            n++;
        }
    }

    printf("波形番号\t時刻[秒]\t電位[V]\n");
    int peak_count = 1;
    for (int i = 1; i < n - 1; i++) {
        if (voltage[i] > voltage[i-1] && voltage[i] > voltage[i+1] && voltage[i] >= 3.0) {
            printf("%d\t\t%.1f\t\t%.2f\n", peak_count, time[i], voltage[i]);
            peak_count++;
        }
    }

    return 0;
}