uses crt;
var a:array[1..100]of integer;
i,n,t,dem1,t1:integer;
begin
clrscr;
readln(n);
for i:=1 to n do readln(a[i]);
for i:=1 to n do
if a[i]>0 then write(a[i]:4);
writeln;
t:=0;
for i:=1 to n do
t:=t+a[i];
writeln('Trung binh cua day la: ' ,t/n:4:2);
t1:=0;
dem1:=0;
for i:=1 to n do
if a[i]>0 then
begin
t1:=t1+a[i];
inc(dem1);
end;
writeln('Trug binh cac so duong la: ',t1/dem1:4:2);
readln;
end.