var i,n:integer;
a:array[-1000..1000] of integer;
begin
for i:=1 to 5 do
read(a[i]);
for i:=1 to 5 do
if a[i]>0 then
write(a[i]);
readln;
end.
uses crt;
var a:array[1..5]of integer;
i,t:integer;
begin
clrscr;
for i:=1 to 5 do
begin
write('A[',i,']='); readln(a[i]);
end;
t:=0;
for i:=1 to 5 do
if a[i]>0 then t:=t+a[i];
writeln(t);
readln;
end.