const n=10;
var a:array[1..n] of integer;
i,k: integer;
begin
for i:=1 to n do
a[i]:=random(21)-10;
write (a[i]:3,' ');
if a[i] mod 2 <> 0 then k:=k+1
end;
writeln;
a[i]:=a[i]-k;
write (a[i]:3,' ')
end
end.
const n=10;
var a:array[1..n] of integer;
i,k: integer;
begin
for i:=1 to n do
begin
a[i]:=random(21)-10;
write (a[i]:3,' ');
if a[i] mod 2 <> 0 then k:=k+1
end;
writeln;
for i:=1 to n do
begin
a[i]:=a[i]-k;
write (a[i]:3,' ')
end
end.