Program bai1;
uses crt;
var a: array[1..1000] of integer;
Z,i,j,n: integer;
begin
clrscr;
write('nhap n ='); readln(n);
for i:= 1 to n do
begin
write('nhap a[',i,']='); readln(a[i]);
end;
for i:= 1 to n-1 do
for j:= i+1 to n do
if a[i] < a[j] then
begin
Z:=a[i];
a[i]:=a[j];
a[j]:=Z;
end;
writeln('Day Da Sap Xep La :' );
for i:= 1 to n do write(a[i] :4);
readln;
end.