program mass_maxnech_kolkrat5;
const n=10;
var
i,sum:integer;
a:array[1..n] of integer;
begin
sum:=0;
for i:=1 to n do
read(a[i]);
if (a[i]>0) then sum:=sum+a[i];
end;
write(sum);
end.
program mass_maxnech_kolkrat5;
const n=10;
var
i,sum:integer;
a:array[1..n] of integer;
begin
sum:=0;
for i:=1 to n do
begin
read(a[i]);
if (a[i]>0) then sum:=sum+a[i];
end;
write(sum);
end.