#include <stdio.h>

int main(void) {
    double t[20000], v[20000];
    int n = 0, peak_count = 0;

    while (scanf("%lf,%lf", &t[n], &v[n]) == 2) {
        n++;
    }

    printf("波形番号\t時刻[s]\t電位[V]\n");

    for (int i = 1; i < n - 1; i++) {
        if (v[i] > v[i - 1] && v[i] > v[i + 1] && v[i] > 3.2) {
            peak_count++;
            printf("%d\t\t%.2f\t%.3f\n", peak_count, t[i], v[i]);
            i += 50;
        }
    }

    return 0;
}
