uses crt;
var a:array[1..100]of integer;
n,i,x,dem:integer;
begin
clrscr;
write('Nhap n='); readln(n);
for i:=1 to n do
begin
write('A[',i,']='); readln(a[i]);
end;
write('Nhap x='); readln(x);
dem:=0;
for i:=1 to n do
if a[i]<=x then inc(dem);
writeln('So phan tu khong lon hon ',x,' la: ',dem);
readln;
end.