Ответ:
program qq;
uses crt;
var c: char;
i,n, count, Year, Gol: integer;
f:text;
begin
assign(f, 'input.txt');
reset(f);
writeln('Количество футболистов');
readln(N);
count := 0;
close (f);
for i:=1 to N do begin n:=5;
repeat readln(f,c); until c = ' ';
repeat readln(f,c); until c = ' ';
readln(f,Year);
readln(f,Gol);
if (1988
(Gol = 0) then count := count + 1;
end;
assign(f, 'output.txt');
rewrite(f);
Writeln(f);
close(f);
writeln(f,count);
end.
Объяснение: