~cpp
#include <fstream>
using namespace std;
int main()
{
ifstream fin("input.txt");
ofstream fout("output.txt");
int array[10000];
for(int i = 0; i<10000;i++)
{
fin >> array[i] ;
}
int temp;
for(int j = 0; j < 10000; j++)
{
for(int k = j+1; k < 10000; k++)
{
if(array[j] > array[k])
{
temp = array[j];
array[j] = array[k];
array[k] = temp;
}
}
fout<<array[j];
fout<<endl;
}
return 0;
}










