#include <iostream>
#include <string>
#include <cstdio>
using namespace std;

int main(){
	string s;
	getline(cin, s);
	getline(cin, s);
	int t = 3;
	while(getline(cin, s)){
		int a = -1, b = -1;
		sscanf(s.c_str(), "%*d,%*d,%*d,%*d%n %*c%n", &a, &b);
		if(a != -1 && b == -1){
			cerr << t << ": " << s << endl;
		}
		++t;
	}
}