uses crt;
var a:array[1..250]of integer;
i,n,min:integer;
begin
clrscr;
write('nhap n='); readln(n);
for i:=1 to n do
begin
write('a[',i,']='); readln(a[i]);
end;
min:=a[1];
for i:=1 to n do
if min>a[i] then min:=a[i];
writeln('so nho nhat la: ',min);
writeln('cac uoc so cua no la: ');
for i:=1 to min do
if min mod i=0 then write(i:4);
readln;
end.