1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
#include<cstdio>

int main() {
    int n;
    scanf("%i ", &n);
    n = 0;
    char c;
    while(  (c = getchar()) != EOF ) {
        printf("%i,%i,", c, n);
        ++n;
    }
    printf("%i", n);

    return 0;
}