program bbb;
uses crt;
const n=7;
var x:array[1..n] of integer;
i,m:integer;
s:real;
BEGIN
clrscr;
randomize;
for i:=1 to n do begin
x[i]:=random(40)-15;
writeln(x[i]:7);
end;
s:=0;
for i:=1 to n do
if x[i]>0 then s:=s+x[i];
writeln('s= ',s:7:2);
readln;
END.