Program HOC24;
var i,n: integer;
a: array[1..32000] of integer;
t,t2: longint;
t1: int64;
begin
write('n='); readln(n);
t:=0; t1:=1; t2:=0;
for i:=1 to n do
begin
write('a[',i,']='); readln(a[i]);
if a[i] mod 5=0 then t:=t+a[i];
if a[i]>0 then t1:=t1*a[i];
if a[i] mod 2<>0 then t2:=t2+a[i];
end;
writeln('Tong cac gia tri phan tu chia het cho 5 la : ',t);
writeln('Tich cac so lon hon 0 la : ',t1);
write('Tong cac phan tu le la : ',t2);
readln
end.