program ct;
uses crt;
var i,n,d:integer;
A:array[1..100] of integer;
begin
clrscr;
write('nhap n:=');readln(n);
for i:=1 to n do
begin
write('nhap mang A[',i,']:=');readln(A[i]);
end;
d:=0;
for i:=1 to n do
if (A[i] mod 2=0) and (A[i] mod 3=0) then d:=d+1;
writeln('co',d,' so chia het cho 2 va 3');
readln
end.