program bai1;
var a:array[1..100] of longint;
n,k,s,i:longint;
tbc:real;
begin
repeat
write('N= ');readln(n);
until n>0;
for i:=1 to n do
begin
write('A[,i,']= ');readln(a[i]);
end;
k:=0;s:=0;
for i:=1 to n do
if (a[i] mod 5=0) then
begin
s:=s+a[i];
k:=k+1;
end;
tbc:=s/k;
writeln('Trung binh cong la ',tbc)l
readln
end.