uses crt;
var n,i:integer;
a:array[1..100]of integer;
s,tbn:longint;
kq:real;
begin
clrscr;
write('nhap chieu dai day so:'); readln(n);
for i:=1 to n do
begin
write('a[',i,']='); readln(a[i]);
end;
{---------------------------xu-ly------------------------------}
s:=1;
for i:=1 to n do
s:=s*a[i];
if s>0 then
begin
tbn:=1;
for i:=1 to n do
tbn:=tbn*a[i];
kq:=exp((1/n)*ln(tbn));
end;
writeln('tich cua day la: ',s);
writeln('trung binh nhan cua day la: ',kq:4:2);
readln;
end.