#include
#include
#include
#include
#include
using namespace std;
int n, i;
int main() {
vector x;
cin >> n;
srand(time(0));
for (; i < n; ++i) {
x.emplace_back(rand());
}
for (i = 0; i < n; ++i) {
cout << x[i] << " ";<br>}
cout << endl;<br>sort(x.begin(), x.end());
for (i = 0; i < n; ++i) {
cout << x[i] << " ";<br>}
return 0;
}