uses crt;
var n,x,dem,i:longint; a:array[1..10000000]of longint;
begin
clrscr;
write('n=');readln(n);
write('x=');readln(x);
for i:=1 to n do
begin
write('a[',i,']=');readln(a[i]);
if a[i]=x then inc(dem);
end;
if dem>0 then writeln(x,' xuat hien ',dem,' lan trong day.') else
writeln(x,' khong xuat hien trong day .');
readln
end.
//////////////////////////////
Test