const
n = 5; m = 5;
var
a: array [0..m, 0..n] of shortint;
i, b, c: integer;
begin
for i := 1 to m do
begin
for b := 1 to n do
begin
a[i, b] := random(-90, 0);
write(a[i, b]:4);
if (i = m) then
if (a[i, b] mod 4 = 0) then
c += 1;
end;
writeln((i = m) and (b = n) ? ' ' + c : '');
end;
writeln();
end.