Program HOC24;
var i,d,n: integer;
a: array[1..32000] of integer;
begin
write('Nhap N: '); readln(n);
for i:=1 to n do
begin
write('a[',i,']='); readln(a[i]);
end;
write('Nhap k: '); readln(k);
d:=0;
for i:=1 to n do if a[i]=k then d:=d+1;
write('Co ',d,' phan tu bang ',k);
readln
end.