Program HOC24;
var b: array[1..50] of integer;
i,n: integer;
t: longint;
begin
write('Nhap so phan tu can tinh : '); readln(n);
t:=0;
for i:=1 to n do
begin
write('a[',i,']='); readln(a[i]);
if a[i] mod 6=0 then t:=t+a[i];
end;
write('Tong cac boi cua 6 la :',t);
readln
end.