#include <algorithm>
#include <iostream>

using namespace std;

int main()
{
	const int ARRAY_SIZE  = 10;
	int iarr[ ARRAY_SIZE ] = { 10, 4, 2, 6, 8, 4, 4 };
	sort( iarr, iarr + ARRAY_SIZE );

	for ( size_t idx = 0; idx < ARRAY_SIZE; ++idx )
	{
		cout << iarr[ idx ] << ' ';
	}

	return 0;
}