uses crt;
var a:array[1..100]of integer;
i,n,t:integer;
begin
clrscr;
write('Nhap n='); readln(n);
for i:=1 to n do
begin
write('A[',i,']='); readln(a[i]);
end;
t:=0;
for i:=1 to n do
if a[i] mod 5=0 then
begin
write(a[i]:4);
t:=t+a[i];
end;
writeln;
writeln('Tong cac phan tu chia het cho 5 la: ',t);
readln;
end.