//PascalABC.Net 3.2
begin
var a:=arrrandom (readinteger('n ='), -15, 15); a.Println;
var b: array of integer;
for var i:=0 to length(a)-1 do if not((a[i]<0) or ((a[i] mod 8)=0)) then begin<br> setLength (b, length(b)+1);
b[length(b)-1]:=a[i]
end;
b.Print;
end.