1.
var a:array[1..30000] of integer; b,x:integer;
begin
for x:=1 to 30000 do begin readln(a[x]);
if a[x]<0 then b:= b+a[x];<br>end;
end.
2.
var a:array[1..30000] of integer; b,x:integer;
begin
b:= 1;
for x:=1 to 30000 do begin readln(a[x]);
if a[x] mod 3 = 0 then b:= b*a[x];
end;
end.