program ideone;
Const smax = 99;
Type simple = array[0..smax] of smallint;
Var data, res:simple; i, n:smallint;
procedure delInArr(Var arr:simple; pos:smallint);
Var i:smallint; tArr:simple;
begin
for i:=0 to pos-1 do tArr[i]:=arr[i];
for i:=pos to smax do tArr[i]:=arr[i+1];
arr:=tArr;
end;
procedure insInArr(Var arr:simple; pos, e:smallint);
Var i:smallint; tArr:simple;
begin
for i:=0 to pos-1 do tArr[i]:=arr[i];
tArr[pos]:=e;
for i:=pos+1 to smax do tArr[i]:=arr[i+1];
arr:=tArr;
end;
function bubbleSort(arr:simple; n:smallint):simple;
Var i, j, t:smallint;
begin
for i:=0 to n-1 do
for j:=i to n-1 do
if arr[j]<arr[j+1] then begin
t:=arr[j];
arr[j]:=arr[j+1];
arr[j+1]:=t;
end;
bubbleSort:=arr;
end;
procedure converter(arr:simple);
Var i:smallint;
begin
end;
procedure writeArr(arr:simple; n:smallint);
Var i:smallint;
begin
for i:=0 to n do write(arr[i], ' ');
end;
begin
read(n);
n:=n-1;
for i:=0 to n do read(data[i]);
res:=bubbleSort(data, n);
writeArr(res, n);
end.
cHJvZ3JhbSBpZGVvbmU7CgpDb25zdCBzbWF4ID0gOTk7ClR5cGUgc2ltcGxlID0gYXJyYXlbMC4uc21heF0gb2Ygc21hbGxpbnQ7ClZhciBkYXRhLCByZXM6c2ltcGxlOyBpLCBuOnNtYWxsaW50OwoKcHJvY2VkdXJlIGRlbEluQXJyKFZhciBhcnI6c2ltcGxlOyBwb3M6c21hbGxpbnQpOwpWYXIgaTpzbWFsbGludDsgdEFycjpzaW1wbGU7CmJlZ2luCglmb3IgaTo9MCB0byBwb3MtMSBkbyB0QXJyW2ldOj1hcnJbaV07Cglmb3IgaTo9cG9zIHRvIHNtYXggZG8gdEFycltpXTo9YXJyW2krMV07CglhcnI6PXRBcnI7CmVuZDsKCnByb2NlZHVyZSBpbnNJbkFycihWYXIgYXJyOnNpbXBsZTsgcG9zLCBlOnNtYWxsaW50KTsKVmFyIGk6c21hbG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