uses crt;
var x,d,i,n:longint;
a:array[1..1000000] of longint;
begin
clrscr;
write('Nhap x: ');readln(x);
write('Nhap n: '); readln(n);
for i:=1 to n do
begin
write('a[',i,']=');readln(a[i]);
end;
for i:=1 to n do
if a[i]<x then inc(d);
write('Trong day so do co ',d,' so nho hon x');
readln
end.