/**
 * Sergey Kopeliovich (burunduk30@gmail.com)
 */

#include <vector>
#include <algorithm>
#include <ranges>
#include <iostream>

using namespace std;
// using namespace std::ranges; // CE: ambiguous

#define forn(i, n) for (int i = 0; i < (int)(n); i++)

int main() {
	vector<int> a {5, 3, 1, 2, 4, 3};
	// std::ranges::sort(a);
	// for (int x : std::views::all(a))
	// 	cout << x << endl;
	// std::sort(std::views::all(a)); // CE
	ranges::sort(a);
	// sort(a.begin(), a.end());
	ranges::copy(a, ostream_iterator<int>(cout, " "));
	cout << endl;

	int b[] = {9, 9, 7, 1, 3};
	ranges::sort(b);
	ranges::copy(b, ostream_iterator<int>(cout, " "));
	cout << endl;
}