program tin_hoc_de_dang;
uses crt;
Var A:array[1..100] Of integer;
n,i,,s,k:integer;
BEGIN
clrscr;
write('nhap n'); Readln(n);
write('nhap k'); Readln(k);
s:=0
For i:=1 to n do
Begin
readln(A[i]);
If A[i] mod k=0 then s:=s+1;
End;
Writeln('Co ', s,' so chia het cho ',k);
readln
end.