#include <stdio.h>
int arr[100];
int myread()
{
int n = 0;
FILE * fp = fopen("7-2.dat");
while (1)
{
int x;
if (fscanf(fp, "%d", &x) == EOF) return n;
arr[n++] = x;
}
fclose(fp);
return 0;
}
void sort(int n)
{
for (int i = 0; i < n - 1; i++)
for (int j = 0; j < n - i - 1; j++)
{
if (arr[j] > arr[j + 1])
{
int t = arr[j];
arr[j] = arr[j+1];
arr[j+1]=t;
}
}
}
int mywrite(int n)
{
FILE * fp = fopen("7-2.out");
for (int i = 0; i < n; i++)
fprintf(fp, "%d ", arr[i]);
fclose(fp);
}
int main()
{
int n = myread();
sort(n);
mywrite(n);
return 0;
}