#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
vector<int> ivec { 1, 2, 100, 78, 89, 23 };
for (auto it = ivec.cbegin(); it != ivec.cend(); ++it)
cout << *it << " ";
cout << endl;
sort(ivec.begin(), ivec.end());
for (auto elem : ivec)
cout << elem << " ";
cout << endl;
return 0;
}