//PascalABC.NET 3.1 сборка 1200
begin
var n := ReadInteger('n =');
var X := ArrRandom(n, -99, 99);
X.Println;
var Y := ArrRandom(n, -99, 99);
Y.Println;
for var i := Low(X) to High(X) do
if Y[i] > X[i] then Swap(Y[i], X[i]);
writeln();
X.Println;
Y.Println;
end.