uses crt;
var
i, n, k: integer;
mas : array [1..5] of integer;
begin
randomize;
n:= 5;
for i:= 1 to n do
mas[i]:= random (1000)+1000;
for i:= 1 to n do
write (mas[i],' ');
writeln;
for i:= 1 to n do begin
mas[i]:= mas[i] mod 100 div 10;
if mas[i] mod 2 = 0 then k:= k+1;
end;
writeln (k);
readkey;
end.